LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2003, 11:17 AM   #1
linuxBill
Member
 
Registered: Mar 2003
Location: Pennsylvania
Distribution: RedHat 7.3
Posts: 40

Rep: Reputation: 15
Setting System clock


Hello,
I'm running RedHat 7.3 and developing a GUI application using QT.
Our customer requires the application to be able to set the PC's clock. We are running the system as SU. Does anyone know how to set the system clock?

Regards,

Bill
 
Old 08-04-2003, 02:36 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
using any of (and probably more):
date
rdate
ntpdate

See the man pages for usage.
 
Old 08-04-2003, 02:38 PM   #3
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
See also "hwclock" to set the BIOS clock from your (correct) system time.
 
Old 08-05-2003, 08:07 AM   #4
linuxBill
Member
 
Registered: Mar 2003
Location: Pennsylvania
Distribution: RedHat 7.3
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks Dave,
Looks like it's a system call of date from within my C++ call. I won't be able to use rdate as the system will not be on a network, and I don't have any man pages for ntpdate. It also looks like after setting the system clock with the date call I'll need to use hwclock to make it permenent.
Thanks for your help.

Regards,

Bill
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
system clock,hardware clock varunbihani Linux - Newbie 2 07-23-2005 09:04 AM
Setting the system clock to a time server? orange400 Linux - General 4 06-13-2005 01:59 PM
trouble setting system clock on boot vortical Linux - Software 0 12-11-2003 07:16 PM
system clock vs. CMOS clock dtamajka Linux - General 7 12-11-2003 05:56 PM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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