You are not logged in.

#1 2004-01-05 15:56:36

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

How do I set Clock?

Hi

I feeling very dumb...I want to set clock up for my time zone (Gnome 2.4)

When I try to set clock I get error program for setting time & date not installed?

Any ideas

Mr Green :oops:


Mr Green

Offline

#2 2004-01-05 16:53:25

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: How do I set Clock?

http://gnomesupport.org/forums/viewtopi … t=set+time

well this is an arch only problem


Freedom is what i love

Offline

#3 2004-01-05 18:19:27

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: How do I set Clock?


Mr Green

Offline

#4 2004-01-05 20:31:29

kritoke
Member
From: Texas, USA
Registered: 2003-08-01
Posts: 211
Website

Re: How do I set Clock?

You can install gnome-system-tools to do it, it is in my tur:

[kritoke]
Server = ftp://ftp.berlios.de/pub/tur/kritoke

Basically you just install that program, right click on your time in the panel, and go to adjust date/time, type in your root password and then you select Slackware 9.1(it seems to be very similar to Arch when using mostly anything in gnome-system-tools).

Kritoke


http://counter.li.org/ Registered Linux User #318963 kritoke@jabber.org

Offline

#5 2004-01-05 22:21:46

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: How do I set Clock?

I'm a command-line guy.  As root, you can do something like this:

date -s "Mon Jan 5 16:55:00 EST 2004"

Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#6 2004-01-06 11:19:56

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: How do I set Clock?

Hi

In /etc/rc.conf

you will see the following


#
# Localization
#
# Note: HARDWARECLOCK is either "UTC" or "localtime"
#
KEYMAP=us
TIMEZONE=Europe/London
HARDWARECLOCK="localtime"

To set TIMEZONE look in /usr/share/zoneinfo for your zone 8)

To adjust time you need to be root then use date command as above.... smile

As for UTC or localtime setting not too sure on which one to use yet  lol

Maybe someone will jump onboard and give us the low down (google it lol )


Mr Green  :mrgreen:


Mr Green

Offline

#7 2004-01-06 13:01:40

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: How do I set Clock?

Mr Green wrote:

# Note: HARDWARECLOCK is either "UTC" or "localtime"
#
KEYMAP=us
TIMEZONE=Europe/London
HARDWARECLOCK="localtime"

As for UTC or localtime setting not too sure on which one to use yet  lol

Maybe someone will jump onboard and give us the low down (google it lol )

UTC you choose if you have a radio-clock-reciever connected to your motherboard to keep your hardware clock to GMT (=UTC) or you set your clock in bios to show GMT --- if you use UTC, then linux will count the hours to your TIMEZONE and show you the right time for your timezone while the system is running on GMT

as most people do not have radio-controlled time-signal recievers on their motherboards and running your clock on GMT is impossible with having windows also on the same machine --- because it changes your system-clock to the time it shows, you can easily use localtime and set your timezone

fortune -m 'what time' :-)  // if you do not have fortune, just run pacman -S fortune ... there are also other fortune-packages with addional quotes ... just search for them: pacman -Ss fortune


The impossible missions are the only ones which succeed.

Offline

#8 2004-01-06 15:10:23

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: How do I set Clock?

I prefer using UTC for my computers (and I even live with the fact that my ancient Win version that I occasionally boot into has the wrong time - note that all newer versions of Win can deal with the CMOS clock being in UTC - from Win98SE onward). Somewhere I read (great reference, eh ;-) ) that the clock being in UTC is the UNIX way. Don't cite me on that but apparently the classical Unix system all have the hardware clock in UTC. And furthermore, AFAIR OpenBSD, e.g. won't even give you a choice :-)

One advantage of this is for Laptops : when you actually do travel with them (some poeple are actually using laptops for mobility reasons ;-) ... ), then you simply change the symlink once you change timezones (and change the entry in rc.conf). No need to fiddle around with "hwclock".

Also, I beleive it is easier for dealing with daylight savings times.

Offline

#9 2004-01-06 15:28:17

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: How do I set Clock?

true, you are right, this is the old way of "*nix"

:-) but hey, does it matter what time it is? i have my clock in kde set to fuzziness=high -> how i have "middle of week" :-)


The impossible missions are the only ones which succeed.

Offline

#10 2004-01-06 16:04:33

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: How do I set Clock?

Then you may like this program that a friend of mine wrote :-) :
http://www.pci.uni-heidelberg.de/tc/usr … xsued.html

Sorry for most of the readers, but you need to speak German.

But actually, on the question how important the accuracy of the clock is : of course it doesn't matter to find out when you need to go to lunch. But it does matter for things like NFS etc. Also, try to complie on NFS mounted directories when make gets confused about time-stamps because the times of the two machines are too much off ... but this is not an issue of the hardware clock but rather of synchronizing the clocks (ntp is the right tool for that).

Offline

#11 2004-01-06 23:26:24

marin_linuxer
Member
From: San Rafael, CA U.S.A.
Registered: 2003-09-03
Posts: 111
Website

Re: How do I set Clock?

I use:

#!/bin/sh
#
# /etc/rc.local: Local multi-user startup script.
#

echo
echo Setting Time and Date from Internet
echo
ntpdate time.nist.gov && hwclock -w

# End of file

Cheers!


-- Linux!  Isn't it time?

Offline

#12 2004-01-06 23:49:59

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: How do I set Clock?

andy wrote:

Then you may like this program that a friend of mine wrote :-) :
http://www.pci.uni-heidelberg.de/tc/usr … xsued.html

Sorry for most of the readers, but you need to speak German.

But actually, on the question how important the accuracy of the clock is : of course it doesn't matter to find out when you need to go to lunch. But it does matter for things like NFS etc. Also, try to complie on NFS mounted directories when make gets confused about time-stamps because the times of the two machines are too much off ... but this is not an issue of the hardware clock but rather of synchronizing the clocks (ntp is the right tool for that).

great, funny tool :-) thanx for this link (i built it for arch, it's in my TUR now)

sure, in the background the clock should go like a swiss clock wink


The impossible missions are the only ones which succeed.

Offline

Board footer

Powered by FluxBB