Re: Testing for daylight savings on a GMT server
From: Gordon Burditt (gordonb.czn7x_at_burditt.org)
Date: 11/04/05
- Next message: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Previous message: Pascal Bourguignon: "Re: Best unix programming language or tool for dealing with plaintext DBs?"
- In reply to: snoopy__at_excite.com: "Re: Testing for daylight savings on a GMT server"
- Next in thread: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Reply: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 04 Nov 2005 02:08:31 -0000
> You're exactly right. Other scripts I set the TZ specifically, but
>in this one it was missing which caused the problem. I use the TZ in
>other scripts to catch specific information during certain hours in
>logs, but in this script I assumed that perl would be able to tell if
>DST was in effect or not, but while in GMT I guess it can't deliver
>that information because it's senseless.
It is meaningless to talk about "whether DST is in effect or not"
without a specific time zone as context. The answer is "NO" if the
time zone is GMT. A specific time zone *offset* is not enough, as
the DST starting and ending dates may depend on what country is
involved. And the USA just messed up any programs with this info
hard-coded by changing the starting/ending dates for DST in 2007
and beyond. I am not sure it's been determined yet whether Canada
and Mexico will go along with the change or not.
Gordon L. Burditt
- Next message: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Previous message: Pascal Bourguignon: "Re: Best unix programming language or tool for dealing with plaintext DBs?"
- In reply to: snoopy__at_excite.com: "Re: Testing for daylight savings on a GMT server"
- Next in thread: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Reply: Jordan Abel: "Re: Testing for daylight savings on a GMT server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|