Re: C functions to set the linux hardware clock
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 03/30/04
- Next message: Programmer Dude: "Re: What program do you use for visualization of C/C++ program?"
- Previous message: Floyd L. Davidson: "Re: C functions to set the linux hardware clock"
- In reply to: flair: "C functions to set the linux hardware clock"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 09:27:43 -0500
In article <cdad3f1f.0403300430.6127782b@posting.google.com>,
fr.lair@laposte.net (flair) wrote:
> I am programming a software in C language, for Linux. This software
> (running in super-user mode) will have to set the hardware clock.
> Which C functions can I use to adjust the hardware clock?
>
> I have already tried to use the function "settimeofday", but when I
> restart the computer, the time is not saved.
This is an OS-specific thing, so you should probably ask in a Linux
newsgroup.
Or just read the source code of the "date" command and see what it does
when you set the time.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Programmer Dude: "Re: What program do you use for visualization of C/C++ program?"
- Previous message: Floyd L. Davidson: "Re: C functions to set the linux hardware clock"
- In reply to: flair: "C functions to set the linux hardware clock"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|