in reply to date conversion
use Date::Parse; use DateTime; my $time = str2time("26/Aug/2005:01:05:43 -0400"); my $dt = DateTime->from_epoch( epoch => $time ); print $dt->ymd(''), $dt->hms(''), "Z\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: date conversion
by pg (Canon) on Aug 27, 2005 at 18:48 UTC | |
by Thelonius (Priest) on Aug 27, 2005 at 19:16 UTC | |
by m2001smith (Initiate) on Aug 27, 2005 at 19:28 UTC | |
by fmerges (Chaplain) on Aug 28, 2005 at 11:28 UTC | |
by jdtoronto (Prior) on Aug 28, 2005 at 05:52 UTC |