Re: Daylight savings

From: newsreader(at)mediaone(dot)net
To: Justin Clift <aa2(at)bigpond(dot)net(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Daylight savings
Date: 2001-05-04 23:22:03
Message-ID: 20010504192202.A1124@dragon.universe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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]'

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-04 23:28:57 Re: Re: underlying structure: varchar vs. text
Previous Message Fabrice Scemama 2001-05-04 23:15:31 Re: Re: How to install on Windows?