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

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

"date" doesn't work


From: Karel Kulhavý
Subject: "date" doesn't work
Date: Thu, 28 Aug 2003 20:10:00 -0000
User-agent: Mutt/1.2.5.1i

Hello

I have used "date" according to supplied "info" documentations and figured
out it doesn't work.

I wanted to set the date to
year 2003
month 08
day 28
hour 21
minute 52
second 00

Quotation from "info date":
"Setting the time: If given an argument that does not start with
'+', `date' sets the system clock to the time and date specified by that
argument (as described below) [...] The argument must consist entirely
of digits, which have the following meaning:
`MM' month
`DD' day within mont
`hh` hour
`mm` minute
`CC` first two digits of year (optional)
`YY' last two digits of year (optional)
`ss' second (optional)
"

address@hidden:~$ date 08282152200300
date: invalid date `08282152200300'

I think the program complains an error message on an input that is correct
according to the specification. How can I please set the date to the described
date?  I can't figure it out from the documentation.

I didn't find a set example in the info except for setting time 2 minutes ahead.

man date says: "-s, --set=STRING set time described by STRING". I can't figure
out what "described by STRING means". It isn't described anywhere else
in 'man date'.

date version:

date (GNU sh-utils) 2.0
Written by David MacKenzie.

Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
System info is attached.

Cl<




reply via email to

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