Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use Time::Zone; use Date::Format; use Date::Parse; my $TZ = 'America/New_York'; my $now = scalar localtime time() + tz_offset($TZ); my $today = time2str( "%m-%d-%Y \@ %H:%M:%S", $now); # I am trying to format the result like this = 09-30-2010 @ 21:45:06 print "Today: $today\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Dynamic Time Zone Help
by ikegami (Patriarch) on Oct 01, 2010 at 03:41 UTC | |
|
Re: Dynamic Time Zone Help
by suhailck (Friar) on Oct 01, 2010 at 02:50 UTC | |
by ikegami (Patriarch) on Oct 01, 2010 at 03:48 UTC | |
|
Re: Dynamic Time Zone Help
by ambrus (Abbot) on Oct 01, 2010 at 19:02 UTC |