Lars Boegild Thomsen writes:
> 
> I am sure this one is upstream - and it's absolutely weird.  This should 
> explain all:

It's weird, and a FAQ.
<http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e>

> 
> l...@ncpws04:~$ date --date=1981-12-31
> Thu Dec 31 00:00:00 MALT 1981
> l...@ncpws04:~$ date --date=1982-01-01
> date: invalid date `1982-01-01'

Note that since you gave a date without a time, 00:00:00 was assumed. On
Jan 1, 1982, 00:00:00 did not exist in your location because of a
timezone change. A correctly adjusted clock went directly from
"Thu Dec 31 23:59:59 MALT 1981" to "Fri Jan  1 00:30:00 MYT 1982",
skipping half an hour.

Some relevant historical information is here:

http://www.math.nus.edu.sg/aslaksen/teaching/timezone.html

-- 
Alan Curry



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to