in reply to How to convert time stamp to unix time ?
In addition to Time::Local which jettero mentioned, you could also use Date::Calc, DateTime, and for good measure Date::Manip.
Parsing hint:
my $stamp = "100117104030"; my ($YY, $MM, $DD, $hh, $mm, $ss) = ($stamp =~ /^(\d{2})(\d{2})(\d{2}) +(\d{2})(\d{2})(\d{2})/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to convert time stamp to unix time ?
by AnomalousMonk (Archbishop) on Feb 03, 2010 at 14:47 UTC | |
by Your Mother (Archbishop) on Feb 03, 2010 at 18:27 UTC | |
by AnomalousMonk (Archbishop) on Feb 04, 2010 at 07:16 UTC | |
by Anonymous Monk on Feb 03, 2010 at 17:54 UTC | |
by AnomalousMonk (Archbishop) on Feb 04, 2010 at 07:10 UTC |