Re: Testing for daylight savings on a GMT server

From: Gordon Burditt (gordonb.czn7x_at_burditt.org)
Date: 11/04/05


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



Relevant Pages

  • Re: Testing for daylight savings on a GMT server
    ... > other servers that are not and the other servers also observe ... > daylight savings time adjustments. ... > scripts that do not require any changes due to the timechange, ... > care about DST and perl won't pick up the change. ...
    (comp.unix.solaris)
  • Re: Testing for daylight savings on a GMT server
    ... > other servers that are not and the other servers also observe ... > daylight savings time adjustments. ... > scripts that do not require any changes due to the timechange, ... > care about DST and perl won't pick up the change. ...
    (comp.unix.programmer)
  • Re: Testing for daylight savings on a GMT server
    ... > other servers that are not and the other servers also observe ... > daylight savings time adjustments. ... > scripts that do not require any changes due to the timechange, ... > care about DST and perl won't pick up the change. ...
    (comp.unix.shell)
  • Re: Testing for daylight savings on a GMT server
    ... Other scripts I set the TZ specifically, ... >in this one it was missing which caused the problem. ... It is meaningless to talk about "whether DST is in effect or not" ... without a specific time zone as context. ...
    (comp.unix.shell)
  • Re: Testing for daylight savings on a GMT server
    ... Other scripts I set the TZ specifically, ... >in this one it was missing which caused the problem. ... It is meaningless to talk about "whether DST is in effect or not" ... without a specific time zone as context. ...
    (comp.unix.solaris)