[SWLUG] using 'date' with british summer time
Chris M. Jackson
chris at zenii.linux.org.uk
Fri Nov 28 10:05:13 UTC 2003
On Fri, 28 Nov 2003, bascule wrote:
> oddly, i also can't explain the following results either:
> [bascule at mycroft scripts]$ date -d '00:00:00 1970-01-01' +%s
> -3600
> [bascule at mycroft scripts]$ date -d '00:00:00 1970-01-01 UTC' +%s
> 0
> [bascule at mycroft scripts]$ date -d '00:00:00 1970-01-01 BST' +%s
> -3600
> [bascule at mycroft scripts]$ date
> Fri Nov 28 00:52:04 GMT 2003
> [bascule at mycroft scripts]$
> given that the current timezone is gmt how come i get -3600 for the first
> result?
As part of a bizarre experiment, when the clocks went forward in March
1968, they stayed that way until October 1971. Or Something(TM). So, at
the time of the Epoch (midnight UTC 01/01/1970), UK time was 01:00, not 00:00.
HTH
--
|/ Chris M. Jackson
C> Be seeing you!
H
More information about the Swlug
mailing list