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

Re: Daylight Savings Time problem



On Fri, 12 Apr 1996, S. Keeling wrote:
>   516  date -u -s 0413150496

> 	It kept reporting "illegal date format" or something.  This is

Don't use the -s flag, and it'll work.  The man page says that '-s'
allows you to set the time to "almost any common format".  Ironically,
the format it suggests, [MMDDhhmm[[CC]YY][.ss]], is not accepted.

You can still set the date without -s:

       If given an argument that does not start  with  `+',  date
       sets  the  system  clock to the time and date specified by
       that argument.  The argument must consist entirely of dig­
       its, which have the following meaning:

Guy



Reply to: