There's more than one way to do things | |
PerlMonks |
Re^2: Date::Parse - how to correctly parse dates between 1901 and 1969by eniad (Acolyte) |
on Feb 20, 2018 at 00:10 UTC ( [id://1209519]=note: print w/replies, xml ) | Need Help?? |
I am using Date::Parse to parse datetimes that may be in different formats. The dates have come in like YYYYMMDD, YYYY-MM-DD, YYYYMMDD HH:MM, etc. Time::Piece->strptime() requires a defined input format. Time::Piece would certainly work once the datetime is well formatted. Is there and advantage to Time::Piece over DateTime?
In Section
Seekers of Perl Wisdom
|
|