Ключевые слова:solaris, time, (найти похожие документы)
Date: Mon, 26 Mar 2001 17:13:39 +0400
From: Boris Paleev <Boris.Paleev@f113.n5020.z2.fidonet.org>
Newsgroups: fido7.ru.unix.solaris
Subject: [Solaris] как поменять timezone'у
sa> Подскажите, плс, как можно поменять timezone'y без перезагрузки машины?
Hикак.
sa> TZ=GMT-6; export TZ не спасает.
Воистину так :-)
sa> Да, и заодно, как устроить автоматический переход с зимнего на
sa> летнее время? Заранее спасибо.
sa> PS Solaris7/x86
Был бы 8, было бы несколько проще - в 8 файл zoneinfo нормальный, во всех
остальных, скорей всего, его придется править. Если есть solaris8, возьми
оттуда файл /usr/share/lib/zoneinfo/src/europe. Если нет, найди у себя файл
/usr/share/lib/zoneinfo/europe (именно так, без src) и убедись, что в нем есть
указанные ниже правила и конфигурация зон. Если нет, внеси исправления
(оригинал лучше сохранить).
Потом нужно запустить zic /usr/share/lib/zoneinfo/europe
Потом нужно прописать в /etc/default/init:
TZ=Asia/Omsk
(я исхожу из того, что ты пишешь из 5004, иначе вводи свои данные)
и перезапускаешь комп.
А вот и необходимые правила и конфигурация зон:
Rule Russia 1993 max - Mar lastSun 2:00s 1:00 S
Rule Russia 1993 1995 - Sep lastSun 2:00s 0 -
Rule Russia 1996 max - Oct lastSun 2:00s 0 -
# Russia
# From Paul Eggert <eggert@twinsun.com> (1996-11-22):
# Except for Moscow after 1919-07-01, I invented the time zone
abbreviations,
# and (unless otherwise specified) guessed what happened after 1991.
# Moscow time zone abbreviations after 1919-07-01, and Moscow rules after
1991,
# are from Andrey A. Chernov. The rest is from Shanks and the IATA.
#
# From Andrey A. Chernov <ache@nagual.ru> (1996-10-04):
# `MSK' and `MSD' were born and used initially on Moscow computers with
# Unix-like OSes by several developer groups (e.g. Demos group, Kiae
group)....
# The next step was the UUCP network, the Relcom predecessor
# (used mainly for mail), and MSK/MSD was actively used there.
#
# From Chris Carrier <72157.3334@CompuServe.COM> (1996-10-30):
# According to a friend of mine who rode the Trans-Siberian Railroad from
# Moscow to Irkutsk in 1995, public air and rail transport in Russia ...
# still follows Moscow time, no matter where in Russia it is located.
#
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Zone Europe/Kaliningrad 1:22:00 - LMT 1893 Apr
1:00 C-Eur CE%sT 1945
2:00 Poland CET 1946
3:00 Russia MSK/MSD 1991 Mar 31 2:00s
2:00 1:00 EEST 1991 Sep 29 2:00s
2:00 - EET 1992 Jan 19 2:00s
3:00 Russia MSK/MSD 1994
# IATA SSIM (1994-02) says Kaliningrad is at UTC+2; guess 1994 change.
2:00 Russia EE%sT
Zone Europe/Moscow 2:30:20 - LMT 1880
2:30:20 Russia %s 1919 Jul 1 2:00
3:00 Russia MSK/MSD 1922 Oct
2:00 - EET 1930 Jun 21
3:00 Russia MSK/MSD 1991 Mar 31 2:00s
2:00 1:00 EEST 1991 Sep 29 2:00s
2:00 - EET 1992 Jan 19 2:00s
3:00 Russia MSK/MSD
Zone Europe/Samara 3:20:36 - LMT 1924 May 2
3:00 - KUYT 1957 Mar # Kuybyshev Time
4:00 Russia KUY%sT 1991 Mar 31 2:00s
3:00 1:00 KUYST 1991 Sep 29 2:00s
3:00 - SAMT 1992 Jan 19 2:00s # Samara
Time
4:00 Russia SAM%sT
Zone Asia/Yekaterinburg 4:02:34 - LMT 1924 May 2
4:00 - SVET 1957 Mar # Sverdlovsk Time
5:00 Russia SVE%sT 1991 Mar 31 2:00s
4:00 1:00 SVEST 1991 Sep 29 2:00s
4:00 - SVET 1992 Jan 19 2:00s
5:00 Russia YEK%sT # Yekaterinburg Time
Zone Asia/Omsk 4:53:36 - LMT 1924 May 2
5:00 - OMST 1957 Mar # Omsk Time
6:00 Russia OMS%sT 1991 Mar 31 2:00s
5:00 1:00 OMSST 1991 Sep 29 2:00s
5:00 - OMST 1992 Jan 19 2:00s
6:00 Russia OMS%sT
# From Stanislaw A. Kuzikowski <S.A.Kuz@iae.nsk.su> (1994-06-29):
# But now it is some months since Novosibirsk is 3 hours ahead of Moscow!
# I do not know why they have decided to make this change;
# as far as I remember it was done exactly during winter->summer switching
# so we (Novosibirsk) simply did not switch.
Zone Asia/Novosibirsk 5:31:40 - LMT 1924 May 2
6:00 - NOVT 1957 Mar # Novosibirsk Time
7:00 Russia NOV%sT 1991 Mar 31 2:00s
6:00 1:00 NOVST 1991 Sep 29 2:00s
6:00 - NOVT 1992 Jan 19 2:00s
7:00 Russia NOV%sT 1994 Mar 27 2:00s
6:00 1:00 NOVST 1994 Sep 25 2:00s
6:00 Russia NOV%sT
Zone Asia/Krasnoyarsk 6:11:20 - LMT 1924 May 2
6:00 - KRAT 1957 Mar # Krasnoyarsk Time
7:00 Russia KRA%sT 1991 Mar 31 2:00s
6:00 1:00 KRAST 1991 Sep 29 2:00s
6:00 - KRAT 1992 Jan 19 2:00s
7:00 Russia KRA%sT
Zone Asia/Irkutsk 6:57:20 - LMT 1880
6:57:20 - IMT 1924 May 2 # Irkutsk Mean
Time
7:00 - IRKT 1957 Mar # Irkutsk Time
8:00 Russia IRK%sT 1991 Mar 31 2:00s
7:00 1:00 IRKST 1991 Sep 29 2:00s
7:00 - IRKT 1992 Jan 19 2:00s
8:00 Russia IRK%sT
Zone Asia/Yakutsk 8:38:40 - LMT 1924 May 2
8:00 - YAKT 1957 Mar # Yakutsk Time
9:00 Russia YAK%sT 1991 Mar 31 2:00s
8:00 1:00 YAKST 1991 Sep 29 2:00s
8:00 - YAKT 1992 Jan 19 2:00s
9:00 Russia YAK%sT
Zone Asia/Vladivostok 8:47:44 - LMT 1880
8:47:44 - VMT 1924 May 2 # Vladivostok MT
9:00 - VLAT 1957 Mar # Vladivostok Time
10:00 Russia VLA%sT 1991 Mar 31 2:00s
9:00 1:00 VLAST 1991 Sep 29 2:00s
9:00 - VLAT 1992 Jan 19 2:00s
10:00 Russia VLA%sT
Zone Asia/Magadan 10:03:12 - LMT 1924 May 2
10:00 - MAGT 1957 Mar # Magadan Time
11:00 Russia MAG%sT 1991 Mar 31 2:00s
10:00 1:00 MAGST 1991 Sep 29 2:00s
10:00 - MAGT 1992 Jan 19 2:00s
11:00 Russia MAG%sT
# This name should be Asia/Petropavlovsk-Kamchatski, but that's too long.
Zone Asia/Kamchatka 10:34:36 - LMT 1924 May 2
11:00 - PETT 1957 Mar # P-K Time
12:00 Russia PET%sT 1991 Mar 31 2:00s
11:00 1:00 PETST 1991 Sep 29 2:00s
11:00 - PETT 1992 Jan 19 2:00s
12:00 Russia PET%sT
Zone Asia/Anadyr 11:49:56 - LMT 1924 May 2
12:00 - ANAT 1957 Mar # Anadyr Time
13:00 Russia ANA%sT 1991 Mar 31 2:00s
12:00 1:00 ANAST 1991 Sep 29 2:00s
12:00 - ANAT 1992 Jan 19 2:00s
13:00 Russia ANA%sT
sa> --- ifmail v.2.14.os-p7-tma5.5.b29
sa> * Origin: Road Police (2:5004/53.1)
Best regards, Boris