Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: DateTime Daylight savings question

by broomduster (Priest)
on Sep 19, 2008 at 20:56 UTC ( #712627=note: print w/replies, xml ) Need Help??


in reply to Re^2: DateTime Daylight savings question
in thread DateTime Daylight savings question

Curious... That time isn't even Standard Time for America/New_York at the moment. I have PM display times in my local time zone (currently EDT, same as America/New_York at the moment). That tells me that your reply was posted at 2008-09-19 16:10:07 EDT, which would be 15:10:07 EST, yet you show 17:15:48 from DateTime->now. That's about an hour off, but it's in the wrong direction.

What does Windows think your time is (and might as well check it's notion of the time zone, too)? I'm stretching here; I don't have a Windows system that I can use to check this.

Update:One other thing that might be worth checking:

my $isdst = ( localtime(time) )[-1]; print "$isdst\n";

Replies are listed 'Best First'.
Re^4: DateTime Daylight savings question
by jsilva_im (Novice) on Sep 19, 2008 at 21:14 UTC
    That routine returned a big "0".
      $isdst = 0 means your system time is not set to DST.

      Update: ikegami is doing a better job below explaining what I was trying to get at above.... Namely, your system time settings appear to be off.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://712627]
help
Chatterbox?
marioroy At a large firm, had to awaken a security guy a few times so that nobody would catch him sleeping.
marioroy On a large dairy farm, almost went off the road with a 10 wheeler from exhaustion. On the farm, almost went off the silo with a big tractor. At the Fransiscan monastery, almost slipped off the dome while painting it.
[marioroy]: In Saudi Arabia caught fire but didn't burn. I think angels exist.
Lady_Aleena clean up after dinner finally.
[Discipulus]: uch! so we are twice lucky to have MCE..;=)
[marioroy]: Working a midnight graveyard shift, on the way home ran out of gas. just 2 minutes later somebody stops with a small tank of gas. It's wierd. There's always someone nearby for some reason.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-05-29 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?