bug-sh-utils
[Top][All Lists]
Advanced

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

DATE set broken


From: Barnes, Brian
Subject: DATE set broken
Date: Wed, 6 Nov 2002 11:42:26 -0600

Hi,

Your date set feature is horribly broken and/or misleadingly documented. 

Per your documentation, these should work (date [-u|--utc|--universal]
[MMDDhhmm[[CC]YY][.ss]])
        date -s 11061137 <enter>
        date -s 110611372002 <enter>


What is your format???? 
         date [OPTION]... [+FORMAT]
       -s, --set=STRING
              set time described by STRING
The + sign causes an error. 
None of the % FORMAT options work

Give an example. You appear to accept one format for reading, but not for
setting. The 2 operations should be 100% reversible. Bad design and/or
implementation. 

Use Perl::Date::Manip to make sense out of any REASONABLE date and use it.

        Brian





reply via email to

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