in reply to Re^2: Difficult on use time
in thread Difficult on use time
They are identical
$tm=time; print scalar(gmtime($tm)), "\n"; print scalar(localtime($tm)), "\n"; require POSIX; $ENV{TZ} = 'UTC'; POSIX::tzset(); print scalar(gmtime($tm)), "\n"; print scalar(localtime($tm)), "\n";
Sun Apr 8 21:29:55 2012 Sun Apr 8 17:29:55 2012 Sun Apr 8 21:29:55 2012 Sun Apr 8 21:29:55 2012
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Difficult on use time
by exilepanda (Friar) on Apr 09, 2012 at 04:30 UTC |
In Section
Seekers of Perl Wisdom