nurse / strptime

a fast strptime engine
Other
38 stars 12 forks source link

Strptime can't parse "%a %b %d %H:%M:%S %Z %Y" but Time.strptime can #10

Closed repeatedly closed 4 years ago

repeatedly commented 7 years ago

Here is the result:

> Strptime.new("%a %b %d %H:%M:%S %Z %Y")
ArgumentError: invalid format
    from (irb):2:in `initialize'
    from (irb):2:in `new'
    from (irb):2
    from /Users/repeatedly/.rbenv/versions/2.3.1/bin/irb:11:in `<main>'
> Time.strptime("Thu Nov 29 14:33:20 GMT 2001", "%a %b %d %H:%M:%S %Z %Y")
=> 2001-11-29 14:33:20 +0000
nurse commented 4 years ago

%Z is not supported.