http://qs1969.pair.com?node_id=1157653


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."