TIME and DATE on a linux box

I need to set the time and date on a slackware linux box (kernel ver. 2.0.30
I would like the commnand in simplest syntax please, and is there a way to set the cmos clock from the command line like you can with DOS? so that any changes made stick thru a reboot.... ?? thanks Kia
lorenkiaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jhanceConnect With a Mentor Commented:
Well, then try this:

date 021820361998.04

sets date to 1998-Feb-18 20:36.04

www:/etc/rc.d# date 021820361998.04
Wed Feb 18 20:36:04 EST 1998
www:/etc/rc.d#
0
 
jhanceCommented:
To set the date you must be root and then you can use the date command:

date 199802171234

this would set the time to be:  17-FEB-1998 12:34
0
 
lorenkiaAuthor Commented:
This did not work the following is the response from the server
daisy:~# date 199802181710
date: invalid date `199802181710'
daisy:~# date 17:15
date: invalid date `17:15'
this is obviously not how to set it for slackware linux... anyone else?
0
 
lorenkiaAuthor Commented:
Yep that one worked!! thanks... hey can you translate 6pm into the 24 hour format? LOL pacific time....
0
 
jhanceCommented:
6pm, that's 18:00, later....
0
All Courses

From novice to tech pro — start learning today.