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').
CCYY == 2004 CCYY != 2104
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.
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 ;)
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
I wish I'd have thought of that.
Fixed.