Re: How to detect if DST is in effect?

From: Tony Walton (
Date: 06/08/05

Date: Wed, 8 Jun 2005 13:18:26 +0100

User-Agent: Unison/1.6.1

On 2005-06-07 18:58:19 +0100, said:

> I decided to just adopt a perl one liner for localtime[8] which solves
> my problem. I didn't want to go outside a shell script, but it was
> too easy to keep fighting it. Thanks to all for their replies and help.

Sorry, I missed the start of this thread. One way of doing it might be
to parse the output of /usr/sbin/zdump -v for the given timezone in the
current year and use that to determine whether you're currently running
under DST or not, I suppose.

Easier in Perl, though!