Tuesday, November 13, 2007

Time zone values interpretation

Time zone values of a distro are related to system hardware clock. The linux file is also responsible for the interpretation of time zone values, which is by default located at /etc/sysconfig/clock.

This file /etc/sysconfig/clock references current values of time zone, hardware clock time set, and UNIX epoch values.

How to change time zone directly from command line?
How to toggle between Linux universal time and local time
How to change ARC time offset of Alpha-based systems?

These are the valid values acceptable from the /etc/sysconfig/clock file.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARAMETER
-----------------------------------------------------
UTC= = true or false; yes or no
= yes indicates universal time should take effect from hardware clock otherwise
a local time value would be in effect
ARC= = true or yes
= ARC console's 42-year time offset is in effect for Alpha-based system, any
other value indicates that the normal UNIX epoch is in use
SRM= = true or yes
= SRM console's 1900 epoch is in effect also with Alpha systems, any other
value indicates that the normal UNIX epoch is in use.
ZONE= = current time zone value
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To change time zone and universal/local time values, simply launch your fave editor and edit the said /etc/sysconfig/clock file.

A sample /etc/sysconfig/clock file would be

# cat /etc/sysconfig/clock
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ZONE="Philippines/Manila"
UTC=true
ARC=false
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy