LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-13-2003, 11:18 PM   #1
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
Date and time.


I have openbox installed.

Openbox's clock reads 03:14am (incorrect)

while date gives me this:

Wed Aug 13 23:15:24 EDT 2003 (correct time)


Anyone know how to fix this? I know the problem is that openbox is UTC and date is EDT but I don't know how to make them both EDT.

(date -u :Thu Aug 14 03:15:28 UTC 2003)


-vexer
 
Old 08-13-2003, 11:20 PM   #2
zsejk
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 345
Blog Entries: 5

Rep: Reputation: 30
I really don't know about your specific issue, but if you look at http://www.loblolly.net/~rddecker/he...-twoclocks.htm it might have something that will solve your problem.



-zsejk
 
Old 08-13-2003, 11:34 PM   #3
vexer
Member
 
Registered: Jan 2003
Location: Sudbury Ontario, Canada
Distribution: Slackware
Posts: 388

Original Poster
Rep: Reputation: 30
your answer semi-helped. While looking at the website you gave me they displayed 2 programs, clock and hwclock with switches. Not knowing about those 2 programs didn't help. I did a man clock and it gave me the function clock() and I mainly focused on clock instead of hwclock since well, no idea. Anyways, long story short

# clock -h
# clock --systohw


the --systohw switch gives the hardware clock the same time as the system clock. (There is also a --hwtosys option incase anyone ever gets the reverse of my problem )


-vexer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 11:17 AM
date and time osheasf Linux - Software 1 06-15-2005 08:47 AM
date/time in c++ 1337 Twinkie Programming 3 01-01-2005 01:23 AM
Display the date and time from another time zone lothario Linux - Software 4 07-31-2004 04:27 PM
Date and Time mairul Debian 7 12-25-2003 01:26 PM


All times are GMT -5. The time now is 01:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration