bug-coreutils
[Top][All Lists]
Advanced

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

date bug (documentation bug?)


From: stefano\.sabatini-lala
Subject: date bug (documentation bug?)
Date: Wed, 26 Apr 2006 18:25:48 +0200

date doesn't work as expexcted after reading the man page.

In order to set the date you need to do:
$ date <date in some weird format>

The command:
$ date --set=<date in some weird format>
doesn't appear to work.

For example look at this session:
address@hidden:~$ LANGUAGE=en_US sudo date 0426172006
Qua Abr 26 17:20:00 WEST 2006
address@hidden:~$ LANGUAGE=en_US sudo date --set=0426172006
date: invalid date `0426172006'
address@hidden:~$ LANGUAGE=en_US sudo  date --set="0426172006"
date: invalid date `0426172006'

The first command syntax (the only that actually work) isn't
documented in the man page.
It's quite puzzling!

Best regards





reply via email to

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