Hi,

On Thu, Apr 21, 2005 at 02:08:46PM -0400, Benjamin A. Okopnik wrote:
> [EMAIL PROTECTED]:~# hwclock --set --date="04-21-2005 13:58:00"
> [EMAIL PROTECTED]:~# hwclock
> Sat Feb 26 13:58:05 2011  -0.675597 seconds

> When '-' is used as the date delimiter, 'hwclock' sets some weird future
> day, month, and year - without any warning. It should either a) use the
> option correctly, or b) fail with an error message.

man hwclock refers to date(1), which prints the same date/time given
--date"04-...". I think the expected form with dashes is [yy]yy-mm-dd (IIRC
it's some ISO norm).

Though "info date" states, that month should be 1-12 and day 1-31, it's no
error giving bigger values. Maybe it is some glibc feature. It seems, there
are 21 month added to 2004-01-01 and then 2005 days, but I can't reproduce
the exact date (Feb 26 2011) myself (i.e. no "date") yet.

HTH,
 Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to