8 - General Questions
twenty-some seconds from your local definition of time.
This is caused by a difference between the UTC (Coordinated
Universal Time, based on astronomical
observations) time and TAI (International Atomic Time, based on atomic clocks) time.
To compensate
for variations in the earth's rotation, "leap seconds" are inserted into UTC, but TAI is unadjusted. These
leap seconds are the cause of this discrepancy. For
a more detailed description, search the web for
"
leap seconds UTC TAI
".
Addressing the problem is fairly simple. In most countries you will get the correct time if you use the "
-
c
"
parameter to
rdate(8)
and use a time zone out of the directory
/usr/share/zoneinfo/right/
.
For example, if you are located in Germany, you could use these commands:
#
cd /etc && ln -sf /usr/share/zoneinfo/right/CET localtime
#
rdate -ncv ptbtime1.ptb.de
In other countries, the rules may differ.
Do'stlaringiz bilan baham: