Solved

TIME and DATE on a linux box

Posted on 1998-02-18
5
264 Views
Last Modified: 2013-12-05
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
0
Comment
Question by:lorenkia
  • 3
  • 2
5 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 1587520
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
 

Author Comment

by:lorenkia
ID: 1587521
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
 
LVL 32

Accepted Solution

by:
jhance earned 70 total points
ID: 1587522
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
 

Author Comment

by:lorenkia
ID: 1587523
Yep that one worked!! thanks... hey can you translate 6pm into the 24 hour format? LOL pacific time....
0
 
LVL 32

Expert Comment

by:jhance
ID: 1587524
6pm, that's 18:00, later....
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question