Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux 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!


  Search this Thread
Old 03-30-2007, 10:50 AM   #1
LQ Newbie
Registered: Jan 2007
Location: Arkansas
Distribution: Zenwalk as desktop, Zenlive as router, XP as game box
Posts: 19

Rep: Reputation: 0
question about setting the timezone and time

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.
Old 03-30-2007, 12:12 PM   #2
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,247
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
If you were running KDE I would suggest the program RSI Break or Workbreak for Gnome 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 .


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 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 > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration