Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl daylight savings time issue? (nm, I'm an idiot)

by CountZero (Bishop)
on Mar 14, 2016 at 15:58 UTC ( [id://1157670]=note: print w/replies, xml ) Need Help??


in reply to Perl daylight savings time issue? (nm, I'm an idiot)

In Belgium Daylight Saving Time starts on Sunday March 27, 2016 at 2:00 AM local time.

Hence perl -MData::Dumper -le "print [ localtime() ]->[-1]" now gives 0 and perl -MData::Dumper -le "print [ localtime(time + 60 * 60 * 24 * 14) ]->[-1]" gives 1.

My Windows 7 computer doesn't have a TZ environment variable set at all.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2026-03-12 02:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.