LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Thread Tools
Old 03-30-2007, 10:50 AM   #1
willyweedle
LQ Newbie
 
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19
Thanked: 0
question about setting the timezone and time


[Log in to get rid of this advertisement]
I need to make a program that can set the timezone and time on a machine whose cmos battery slot has been ripped clear. I have realized that I spend way too much time staring at the console so I have decided to make a simple c program that will alert me every x amount of time to get off my butt. I intend to use the gettimeofday() and settimeofday() functions but... I don't know how I should alter the timezone struct. Please don't tell me to go to google 'cause I'm lazy and don't feel like digging through irrelavent results.
willyweedle is offline     Reply With Quote
Old 03-30-2007, 12:12 PM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: Debian Lenny / Squeeze / Sid
Posts: 7,213
Blog Entries: 5
Thanked: 246
If you were running KDE I would suggest the program RSI Break http://www.rsibreak.org/ or Workbreak for Gnome http://workrave.org/ I hate re-inventing the wheel, but that is also what gives us choice in Linux..

Haven't seen a similar program for the console, nor can I answer your query .
farslayer is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Setting a TimeZone scbops Linux - Newbie 3 02-17-2006 12:24 PM
System time won't accept new timezone mustangfanatic01 Slackware 4 11-22-2005 08:34 PM
setting the correct time & timezone from kde? Jelle Debian 8 07-03-2004 11:08 AM
Yet another question; TimeZone related MasterC Linux From Scratch 6 06-11-2002 04:56 AM
Really Lame Timezone question Supp0rtLinux Linux - General 0 04-08-2002 12:24 PM


All times are GMT -5. The time now is 04:53 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration