Re: set time
From: Lew Pitcher (lpitcher_at_sympatico.ca)
Date: 02/25/05
- Next message: Duke Robillard: "Re: Anti-Virus Product for Linux/Fedora?"
- Previous message: suprtiger_at_excite.com: "set time"
- In reply to: suprtiger_at_excite.com: "set time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Feb 2005 22:26:37 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
suprtiger@excite.com wrote:
> Can some one tell me the correct to corrctly set the time on a Trustix
> server?
Assuming that Trustix uses the Linux "coreutils" date(1), then the correct way
is to use date(1) command to set the system time.
> I have tried date 1146, but it will not change the time.
Probably not.
date 1146
is not a properly formatted date command.
> That is what
> I found on another site, actually a couple of sites. I also tried
> 0502241146 and this did not work either.
I wouldn't expect
date 0502231146
to work either. It's still not a properly formatted date command.
If you take a look at the date(1) manpage ("man 1 date"), you'll find that the
short format to set the date and time is
date MMDDhhmm
as in
date 02241146
to set the system clock to 11:46 AM on February 24
A longer form is
date MMDDhhmm.ss
as in
date 02241146.22
to set the system clock to 11:46:22 AM on February 24
Even longer is
date MMDDhhmmCCYY.ss
as in
date 022411462005.22
to set the system clock to 11:46:22 AM on February 24, 2005
Try one of these forms and see if it works for you.
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCHprtagVFX4UWr64RAjZsAKDNVtxo5G0bwSPoFnOQGTJ8aTBk5QCg9fwU
vcNGEwKKEL6UukdEfheACcc=
=zoJt
-----END PGP SIGNATURE-----
- Next message: Duke Robillard: "Re: Anti-Virus Product for Linux/Fedora?"
- Previous message: suprtiger_at_excite.com: "set time"
- In reply to: suprtiger_at_excite.com: "set time"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|