Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Localtime() or gmtime()

by Abigail-II (Bishop)
on Oct 15, 2002 at 08:20 UTC ( [id://205296]=note: print w/replies, xml ) Need Help??


in reply to Re: Localtime() or gmtime()
in thread Localtime() or gmtime()

Imagine what happens if your servers' sysop one day decides he'd switch his servers to use UTC as their RTC'S timezone. These modules will return the correct date, simply adding the n hours offset will fail in such a case...

Times are just data. Operate on it. If you want to know what time it is in Zimbabwe, you'd calculate the difference to your local time

So, what is it? Can you, or can't you calculate the difference? First you say you can't, then you say you can.

Also, how would Date::Manip or Date::Calc continue to return "the correct date" when the server switches timezones (wrongly apparently, otherwise localtime() would return the correct time).

Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-20 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found