summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-06-21 10:33:06 -0700
committerJeremy Evans <code@jeremyevans.net>2019-11-21 03:32:20 +0200
commita9d4f2d03c847ec1c89dc03a5076a9fa29ffa61f (patch)
tree85fc32549b43796e4f4388383ea5907f6c976022 /lib/irb.rb
parent8f1062127e40767240aa0a0fe18fd48687bc04e9 (diff)
Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2685
Diffstat (limited to 'lib/irb.rb')
0 files changed, 0 insertions, 0 deletions