LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Date and time. (https://www.linuxquestions.org/questions/slackware-14/date-and-time-81780/)

vexer 08-13-2003 10:18 PM

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

zsejk 08-13-2003 10:20 PM

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

vexer 08-13-2003 10:34 PM

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 :D )


-vexer


All times are GMT -5. The time now is 11:14 PM.