D
DJ Stunks
All,
I love Date:arse but it's struggling parsing what I consider to be a
pretty unambiguous date time that Date::Manip handles just fine...
C:\>perl -MDate:arse \
-e "print str2time('2/26/2007 14:38:13 PM') ? 'y' : 'n'"
n
C:\>perl -MDate::Manip \
-e "print UnixDate('2/26/2007 14:38:13 PM','%s') ? 'y' : 'n'"
y
C:\>perl -MDate::Manip \
-e "print UnixDate('2/26/2007 14:38:13 PM','%m/%d/%Y %T')"
02/26/2007 14:38:13
I don't really have a question because Date::Manip is ok, but I needed
epoch time.
-jp
I love Date:arse but it's struggling parsing what I consider to be a
pretty unambiguous date time that Date::Manip handles just fine...
C:\>perl -MDate:arse \
-e "print str2time('2/26/2007 14:38:13 PM') ? 'y' : 'n'"
n
C:\>perl -MDate::Manip \
-e "print UnixDate('2/26/2007 14:38:13 PM','%s') ? 'y' : 'n'"
y
C:\>perl -MDate::Manip \
-e "print UnixDate('2/26/2007 14:38:13 PM','%m/%d/%Y %T')"
02/26/2007 14:38:13
I don't really have a question because Date::Manip is ok, but I needed
epoch time.
-jp