ARC/UTC

Thorsten Kranzkowski dl8bcu at dl8bcu.de
Sat Mar 11 12:49:33 UTC 2006


On Sat, Mar 11, 2006 at 10:30:11AM +0100, Bert Verwoerd wrote:
> Hello,
> 
> Last week I've installed Debian on an AlphaStation, but with a mistake 
> about the time. There must be a place where you can switch ARC or/and 
> UTC on/off. But where? The date is now 03-11-2054, and that seem so silly..

Problem is, many clock-chips only count years as two digits, not four. Thus
you have to define a starting year (the 'epoch', popular values are 1952, 
1970, 2000). But when you program your clock using one epoch and read it using 
another, you are time-warped to the wrong year. 

Guessing from your date, your clock was programmed assuming 1952 and read
using 2000. (1952 + 54 == 2006, 2000 + 54 == 2054)

Assuming you are not dual-booting into some other operating system, you 
should just reprogram your clock with your current kernels opinion of epoch.
Otherwise you would have to tell your kernel that other OS's opinion :-)

man hwclock (esp: --get/setepoch , --epoch, --systohc)

UTC correction is another matter, it's the difference _in hours_ from local
time to UTC (universal time coordinated, 'world-time'). I would recommend
setting the hardware clock to UTC. This saves you from adjusting the clock 
twice a year for daylight saving time. The Kernel's internal clock runs in
UTC anyways.


Hope this helps,
Thorsten

 
> Grtz,
> 
> Bert
> 
> _______________________________________________
> axp-list mailing list
> axp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/axp-list
> 

-- 
| Thorsten Kranzkowski        Internet: dl8bcu at dl8bcu.de                      |
| Mobile: ++49 170 1876134       Snail: Kiebitzstr. 14, 49324 Melle, Germany  |
| Ampr: dl8bcu at db0lj.#rpl.deu.eu, dl8bcu at marvin.dl8bcu.ampr.org [44.130.8.19] |




More information about the axp-list mailing list