Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Difficult on use time

by ikegami (Pope)
on Apr 08, 2012 at 21:30 UTC ( #964033=note: print w/ replies, xml ) Need Help??


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


Comment on Re^3: Difficult on use time
Select or Download Code
Re^4: Difficult on use time
by exilepanda (Monk) on Apr 09, 2012 at 04:30 UTC
    Oops... Sorry that's my fault again... what I think if I am working in GMT+0.. besides the gmt time and localtime goes the same, I would expect the return time is local time based.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2014-08-29 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls