Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TIME and DATE on a linux box

Posted on 1998-02-18
5
Medium Priority
?
319 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 280 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

782 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