Finally I have one more question, does the result of Calendar.now()->utc_offset(); takes daylight saving time into account ?
Oh yeah. :)
Example of a Calendar module usage: http://www.mirar.org/timezone.pike
(http://www.mirar.org/timezone.pike.txt for the source. But beware, it's not cleaned up for viewing at all.)
/ Mirar
Previous text:
2003-05-06 12:54: Subject: Re: localtime
On Tue, 6 May 2003, Mirar @ Pike developers forum wrote:
...so I'd say it's a (g)libc issue.
Try the Calendar module which should calculate the right thing,
| > Calendar.now()->utc_offset(); | (1) Result: -7200
Ok, thanks.
Finally I have one more question, does the result of Calendar.now()->utc_offset(); takes daylight saving time into account ?
-- David Gourdelier
/ Brevbäraren