Re: How to detect if DST is in effect?
From: Tony Walton (tony.walton_at_s_u_n.com)
Date: 06/08/05
- Next message: Sumit Jajoo: "help in bash script"
- Previous message: Alan Connor: "Re: Dialog"
- In reply to: snoopy__at_excite.com: "Re: How to detect if DST is in effect?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 8 Jun 2005 13:18:26 +0100
User-Agent: Unison/1.6.1
On 2005-06-07 18:58:19 +0100, snoopy_@excite.com 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!
-- Tony
- Next message: Sumit Jajoo: "help in bash script"
- Previous message: Alan Connor: "Re: Dialog"
- In reply to: snoopy__at_excite.com: "Re: How to detect if DST is in effect?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]