[Eug-lug] Daylight Savings as of 2007
Bob Miller
kbob at jogger-egg.com
Tue Dec 19 13:35:28 PST 2006
Fred James wrote:
> That is indeed easy ... wish I had something like that for SGI IRIX and
> SVR4 - yes, I have some old ones left
Do you have Perl on those relics?
$ perl -e 'print localtime(1173682800) . "\n"'
Mon Mar 12 00:00:00 2007
There's no PDT/PST to check. Instead, you need to verify that it's
midnight, not 23:00 the previous night.
Where'd I get that number? I used GNU date. (-:
$ date +%s --date=3/12/2007
1173682800
$ date --date=@1173682800
Mon Mar 12 00:00:00 PDT 2007
--
Bob Miller K<bob>
kbob at jogger-egg.com
More information about the EUGLUG
mailing list