Solved

TIME and DATE on a linux box

Posted on 1998-02-18
5
283 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 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