Re: How to detect if DST is in effect?
From: Tony Walton (tony.walton_at_s_u_n.com)
Date: Wed, 8 Jun 2005 13:18:26 +0100
On 2005-06-07 18:58:19 +0100, email@example.com said:
> I decided to just adopt a perl one liner for localtime 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!