Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TIME and DATE on a linux box

Posted on 1998-02-18
5
Medium Priority
?
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you sitting there reading this and wondering how to get started with Linux? It almost seems like picking the right Linux distribution is about like picking the right college or buying a new car if you read some of the article out there. Relax… l…
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…
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…

670 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