Skip to content
  • Jeremy Evans's avatar
    a9d4f2d0
    Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime · a9d4f2d0
    Jeremy Evans authored
    Most of these formats were documented as supported, but were not
    actually supported. Document that %g and %G are supported.
    
    If %U/%W is specified without yday and mon/mday are not specified,
    then Date.strptime is used to get the appropriate yday.
    
    If cwyear is specifier without the year, or cwday and cweek are
    specified without mday and mon, then use Date.strptime and convert
    the resulting value to Time, since Time.make_time cannot handle
    those conversions
    
    Fixes [Bug #9836]
    Fixes [Bug #14241]
    a9d4f2d0
    Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime
    Jeremy Evans authored
    Most of these formats were documented as supported, but were not
    actually supported. Document that %g and %G are supported.
    
    If %U/%W is specified without yday and mon/mday are not specified,
    then Date.strptime is used to get the appropriate yday.
    
    If cwyear is specifier without the year, or cwday and cweek are
    specified without mday and mon, then use Date.strptime and convert
    the resulting value to Time, since Time.make_time cannot handle
    those conversions
    
    Fixes [Bug #9836]
    Fixes [Bug #14241]
Loading