If convenience is more important than size (Date::Manip is about 240k of Perl code), you could do
use Date::Manip; my $time = UnixDate('2007/07/17 13:21', "%s"); print "time=$time\n"; # 1184671260
In reply to Re: Turn date string into timestamp?
by almut
in thread Turn date string into timestamp?
by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |