Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Perl daylight savings time issue?

by Your Mother (Archbishop)
on Mar 14, 2016 at 15:04 UTC ( [id://1157661]=note: print w/replies, xml ) Need Help??


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

Shows true here.

moo@cow[3595]~>perl -MData::Dumper -le "print [ localtime() ]->[-1]" 1

Probably your box has a setting to use/respect DST and it's not on/configured?

Replies are listed 'Best First'.
Re^2: Perl daylight savings time issue?
by cLive ;-) (Prior) on Mar 14, 2016 at 15:11 UTC
    It should be false though, because we are not under Daylight Savings Time any more.

      I'm gonna say the $isdst understanding is backwards? Last week it was zero–

      perl -MData::Dumper -le "print [ localtime(time - 60 * 60 * 24 * 7) ]- +>[-1]" 0

      Update: Google on search: Daylight Saving Time (United States) 2016 began at 2:00 AM on Sunday, March 13 and ends at 2:00 AM on Sunday, November 6

      Oh, I'm sorry. I totally misread the OP. :(

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found