Bill Welliver | 28 Aug 00:49
Gravatar

localtime()->timezone ???

I'm wondering if perhaps I've misunderstood something; perhaps someone can 
enlighten me... localtime() returns a mapping, of which one, timezone, is 
indicated to be the offset from gmt, in seconds. Fair enough. When I use 
localtime(), I get 14400 for the offset, which is 4 hours. The problem is 
that I'm GMT-4... shouldn't the timezone indicate the direction of 
the offset, not just the magnitude? This is Pike 7.6.112 on Solaris 
10/x86.

Bill

localtime()->timezone ???

It does, but you're thinking in negative space. UTC+2 (here) is -7200.


Gmane