[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"Date"
From: |
psmyers |
Subject: |
"Date" |
Date: |
Wed, 2 Jan 2002 00:30:00 -0600 |
I realize this could be extremely outdated, but so was my system time, and
when I tried to correct it ... I had to revert to trial and error to make
it work.
The help and man pages for the shell command "date" on my Linux server
(krenal 2.2.14) were incorrect.
kremlin:~$ date --help
Usage: date [OPTION]... [+FORMAT]
or: date [OPTION] [MMDDhhmm[[CC]YY][.ss]]
-s, --set=STRING set time described by STRING
Using the command "date -s 010200122002.30" gave me the error "invalid
date". Through trial and error I came up with the following two commands to
get done what I needed done.
date -s 020102
date -s 00:12:30
The first setting year, month day
The second setting hour:minue:second
Also, the example date shown in the help file was of the year 1989 ... I
assume that would be when the help was written. Perhaps it's time for an
update?
Paul Smyers
System Administrator
Stone & Ward
(501) 375-3003
[Prev in Thread] |
Current Thread |
[Next in Thread] |