I will not ask why a timestamp is 1 January 1970 at 00:00 but in several cases in my computer they are 1 January 1970 at 01:00, how did the 01:00 coincidentally get set with a number of apps?
1 Answer
The UK government (in its infinite wisdom) decided to experiment with Daylight Saving Time.
It shifted to DST on Sunday, 18 February, 1968, and omitted the shift back that Autumn.
It observed DST all through 1969 and 1970, did nothing in the Spring of 1971, and shifted back to GMT on Sunday, 31 October, 1971.
Therefore, the Unix base time of 0 is correctly shown as 01:00:00 for the UK timezone.
See https://www.timeanddate.com/time/change/uk/london?year=1970
$ date -d @0
Thu 1 Jan 01:00:00 BST 1970
-
2I got indirectly caught by this one myself, several years ago — took me ages to track down, as it's so counterintuitive! (British Summer Time, in January???) (BTW, the term ‘daylight saving time’ isn't used in the UK.)– giddsCommented Jul 31, 2023 at 20:18
-
1@gidds I have lived in the UK for 74 years, and I am still mildly surprised that UTC and GMT are the same (in spite of standing on the Prime Meridian at Greenwich). Agreed that BST is British Summer Time (although Summer itself is elusive). But New York has Eastern Time (EST/EDT Standard and Daylight). I understand DST to be the generic term for any seasonal adjustment to local wall clock time. I am also pleased that most of India runs at UTC+5:30, and delighted that Assam uses "Tea Garden Time" at UTC+6:30. Commented Jul 31, 2023 at 22:51
-
3Epoch time 0 (
1970-01-01Z00:00:00
) was also at1970-01-01T01:00:00
in many European countries (France, Germany, Poland, Italy...) as they were and still are UTC+01:00 in Winter. Commented Aug 1, 2023 at 9:16 -
1ksh93 actually gets the time wrong for epoch 0 in the Europe/London timezone Commented Aug 1, 2023 at 9:24
-
1@MikeScott I refer you to Wikipedia articles "Daylight saving time" and "Daylight saving time by country". Even in the USA, DST is a generic term: there are nine US time zones (4 for the 48 states, 3 for territories, plus Alaska and Hawaii). Each has its own acronym (e.g. MDT is Mountain Daylight Time), so DST means nine different offsets from UTC in the US alone. It is not summer time in the UK: it is BST -- British Summer Time. Commented Aug 2, 2023 at 7:38
echo "$TZ"
.