General

Profile

cwoodcox (Corey Woodcox)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/22/2014

05:38 PM Ruby Bug #10614: strpdate and Leap Days
Tsuyoshi Sawada wrote:
> `'02/29/2012'` clearly does not match `'%m/%d'`. What else would you expect than an argument error?
>> Date.strptime('01/01/2014', '%m/%d')
=> #<Date: 2014-01-01 ((2456659j,0s,0n),+0s,2299161j)>
I...
cwoodcox (Corey Woodcox)

12/18/2014

03:03 AM Ruby Bug #10614 (Closed): strpdate and Leap Days
I'm experiencing an issue parsing dates and leap days.
When the format string includes the year, everything works as expected:
~~~
>> Date.strptime('02/29/2012', '%m/%d/%Y')
=> #<Date: 2012-02-29 ((2455987j,0s,0n),+0s,2299161j)>
...
cwoodcox (Corey Woodcox)

Also available in: Atom