Here's one way from modules I just happened to have lying around on my system (you'll probably need to get Date::Manip from CPAN though)
#!/usr/bin/perl -l use Date::Manip; $date = "Wed Feb 18 2004, 11:03:45 AM EST"; print UnixDate(ParseDate($date),"%s");
I seem to recall that Date::Calc also has a routine to convert from almost any date format to "unix time"
In reply to Re: Date to Epoch conversion
by duff
in thread Date to Epoch conversion
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |