Re: Daylight savings

newsreader@mediaone.net

From: newsreader@mediaone.net
To: Justin Clift <aa2@bigpond.net.au>
Cc: pgsql-general@postgresql.org
Date: 2001-05-04T23:22:03Z
Lists: pgsql-general
On Thu, May 03, 2001 at 05:03:11PM +1000, Justin Clift wrote:
> Hi all,
> 
> I'm wondering if anyone has scripts or knows of any tools which will detect 
> the next DST change, and setup a cronjob to be run just before it?

I don't know what you mean by "detect"
but perl's localtime can tell you whether
it's DST or not

$ perldoc -f localtime

What you can do is something like
		
$ perl -e '@a=localtime(time + 86400);print "It will be daylight saving time in 24 hours! Do something" if $a[8]'