more useful options | |
PerlMonks |
Re: DateTime::Format::Strptime - strftime formats not working?by pc88mxer (Vicar) |
on Jul 10, 2008 at 17:27 UTC ( [id://696759]=note: print w/replies, xml ) | Need Help?? |
I haven't looked at the code, but testing indicates the following are probably true:
1) %g and %G do not seems to be recognized as year formats; only %y and %Y seem to work. I think %g and %G are meant to be used in conjunction with ISO 8601 week numbers (e.g. %V). 2) adding a space helps a lot - otherwise only a single year digit works:
In Section
Seekers of Perl Wisdom
|
|