bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The documentation of date mark that seconds can be from 0->60


From: Andreas Schwab
Subject: Re: The documentation of date mark that seconds can be from 0->60
Date: Thu, 11 Sep 2008 14:23:01 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/22.2 (gnu/linux)

"Dotan Barak" <address@hidden> writes:

> I noticed that the documentation of the utility "date" say that the
> seconds (%S) can be from 0 to 60.
> When i tried it i noticed that 59 is the maximum value which is being printed.

$ TZ=right/UTC date -d '2005-12-31 23:59:60'
Sat Dec 31 23:59:60 UTC 2005

<http://en.wikipedia.org/wiki/Leap_second>

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]