in reply to Timezones in Perl
my $inttime = time; my @local_tm = localtime($inttime); my @gmt_tm = gmtime($inttime); my $tz = $ENV{TZ}; print @local_tm[2],":",@local_tm[1],":",@local_tm[0]," ",$tz,"\n"; $tz = "EST5"; $ENV{TZ} = $tz; @local_tm = localtime($inttime); print @local_tm[2],":",@local_tm[1],":",@local_tm[0]," ",$tz,"\n";
Ben11:5:40 EST5EDT 10:5:40 EST5
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Timezones in Perl
by davorg (Chancellor) on Jun 23, 2000 at 19:33 UTC | |
by ArthurDent (Acolyte) on Jun 26, 2000 at 18:13 UTC |