Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl daylight savings time issue?

by choroba (Archbishop)
on Mar 14, 2016 at 14:38 UTC ( #1157653=note: print w/replies, xml ) Need Help??


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

What does $ENV{TZ} say?
TZ='America/New_York' perl -wE 'print +(localtime)[-1]' 1

Why should it be false if the "D" stands for Daylight in "Eastern Daylight Time"?

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^2: Perl daylight savings time issue?
by cLive ;-) (Prior) on Mar 14, 2016 at 14:51 UTC

    Setting TZ env var makes no difference.

    "$isdst is true if the specified time occurs during Daylight Saving Time, false otherwise."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2022-09-27 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (122 votes). Check out past polls.

    Notices?