Re: date -s (Re: Daylight Savings Time problem)
From: Karl Eichwalder <ke@ke.Central.DE>
Date: Sat, 13 Apr 96 20:22 MET DST
| [keelings@wu1.wl.aecl.ca (S. Keeling)]
|
| | 516 date -u -s 0413150496
|
| | Can anyone tell me what was wrong with line 516?
|
| Sorry, I don't know. I normally use
|
| date -s "1996-04-07 18:06:00" +"%Y-%m-%d %T"
|
| There should a switch to force the ISO format. I do a Cc: jo Jim, the
| sh-utils maintainer.
As the usage message vaguely implies :-)
% date --h
Usage: date [OPTION]... [+FORMAT]
or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
the `MMDDhhmm[[CC]YY][.ss]' format may be used only when it is the
last argument. Pretty many formats are accepted by --set=DATE
(or -s DATE) but that's not one of them.
But in any case, date should accept that or give a better error
message. I'll try to fix this for the imminent alpha release.
Thanks for the report.
Jim
Reply to: