Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56972 - Documentation states the format of the 'date' command is 'MMDDhhmmCCYY', which is incorrect.
Summary: Documentation states the format of the 'date' command is 'MMDDhhmmCCYY', whic...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High trivial (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-13 18:17 UTC by Steven Noonan
Modified: 2004-07-16 02:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Noonan 2004-07-13 18:17:15 UTC
The documentation says 'update it using the date MMDDhhmmCCYY syntax (Month, Day, hour, minute, Century and Year)', but it should be 'MMDDhhmmYY syntax (Month, Day, hour, minute, and Year)'. When configuring the date, 'century' isn't in the default syntax.

Reproducible: Always
Steps to Reproduce:
Try to set the date to 'July 13, 2004 17:56' using the syntax in the documentation ('date 071317562104'). 
Actual Results:  
It returns the error "date: invalid date '071317562104'"

Expected Results:  
It echoes the new date ('Tue Jul 13 17:56:00 GMT 2004').

Can be fixed by changing the syntax in the documentation to cause this effect:

Try to set the date to 'July 13, 2004 17:56' using the MMDDhhmmYY syntax ('date 
0713175604').
Comment 1 SpanKY gentoo-dev 2004-07-13 18:25:16 UTC
CCYY == 2004
CCYY != 2104
Comment 2 Steven Noonan 2004-07-13 18:32:48 UTC
Since this is the 21st century, wouldn't it be 2104? I can see why 2004 makes sense, but that's basically the century minus one.
Comment 3 SpanKY gentoo-dev 2004-07-13 18:45:17 UTC
the Gentoo documentation example shows:
For instance, to set the date to April 25th, 16:21 in the year 2004:
# date 042516212004

in reality our documentation is based off of the information found in the GNU manpages and such ... so i guess we could ask them to clarify on their end but i'm pretty sure they'll tell us to just piss off ;)
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2004-07-15 03:01:02 UTC
There's no need to start a flame war with the gnu guys. If they want to call yyyy/100 a century, it's their choice.

We might as well write YYYY in our handbook. This would be less confusing for users, IMHO
Comment 5 Steven Noonan 2004-07-15 12:18:55 UTC
I wish I'd have thought of that.
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2004-07-16 02:26:13 UTC
Fixed.