LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-30-2007, 09:50 AM   #1
willyweedle
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, 11:12 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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 .
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:30 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