LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-18-2014, 12:29 AM   #1
massy
Member
 
Registered: Nov 2013
Distribution: CentOS 6.4
Posts: 209
Blog Entries: 1

Rep: Reputation: Disabled
difference time by hwclock and date command


When I use hwclock command, sometimes, it shows the same time as date command time and sometimes, It is 12 hours later.How do I fix it?
 
Old 01-18-2014, 02:33 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Is your timezone UTC-12 and are you running ntpd?
 
Old 01-18-2014, 04:00 AM   #3
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 18
difference time by hwclock and date command

if you are using redhat, what is your value at /etc/sysconfig/clock utc=?
 
  


Reply



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
time and date command Chupakabra Linux - Newbie 1 07-29-2011 01:30 AM
Extracting Date and Time From The at Command Woodsman Linux - General 14 09-11-2009 04:48 AM
date command with different time zones lothario Linux - Software 4 12-19-2007 04:47 PM
date command counts time quicker than hwclock (RTC) carl0ski Linux - Software 2 12-29-2005 05:32 AM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 08:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:39 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
Open Source Consulting | Domain Registration