in reply to convert local time to unix epoch time
See DateTime
#!/usr/bin/perl use strict; use warnings; use DateTime; #DateTime->DefaultLocale( 'fr_Fr' ) ; # if needed my $now = DateTime->now( time_zone => 'Europe/Paris' ); print $now->epoch, "\n";
hth,
PooLpi
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: convert local time to unix epoch time
by ikegami (Patriarch) on Feb 03, 2009 at 21:43 UTC | |
by poolpi (Hermit) on Feb 04, 2009 at 08:51 UTC | |
by ikegami (Patriarch) on Feb 04, 2009 at 13:39 UTC |