ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Chistikov <dd1email@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] TZ 0
Date: Mon, 16 Jan 2012 22:47:53 +0400
Message-ID: <20120116184753.GB8965@conflux.foliandre> (raw)
In-Reply-To: <4F1451B0.8030104@mail.ru>

Практический ответ на вопрос о разнице между GMT и UTC (без изучения
процесса сборки tzdata):

$ for dir in /usr/share/zoneinfo/{,posix,right}; do echo "$dir:"; sed 's/GMT/UTC/g' $dir/GMT | md5sum; md5sum < $dir/UTC; done
/usr/share/zoneinfo/:
c79354b8dbee09e62bbc3fb544853283  -
c79354b8dbee09e62bbc3fb544853283  -
/usr/share/zoneinfo/posix:
c79354b8dbee09e62bbc3fb544853283  -
c79354b8dbee09e62bbc3fb544853283  -
/usr/share/zoneinfo/right:
e57768b71e2ce7751db5cb73eb3742df  -
e57768b71e2ce7751db5cb73eb3742df  -

Как видно, *файлы* GMT и UTC отличаются только именами зон. (С самими
аббревиатурами, как Вы понимаете, все сложнее.)

Дополнение: в файле Theory (часть документации tzdata) отмечено, что
в POSIX секунд координации (leap seconds) нет, однако база данных tzdata
содержит информацию о них, а формат файлов временных зон
в /usr/share/zoneinfo/ позволяет ее хранить (см. файлы tzcode/tzfile.*
в исходниках tzdata). Использование и неиспользование этой информации дает
соответственно подкаталоги right и posix (см. также REDO в tzcode/Makefile).

Попробуйте почитать (исходники) tzdata и поискать ответы там. Пояснений
и комментариев в этой базе данных немало.

-- 
Дмитрий Чистиков


  reply	other threads:[~2012-01-16 18:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 15:38 Vladimir Karpinsky
2012-01-16 16:06 ` Dmitry Chistikov
2012-01-16 16:34   ` Vladimir Karpinsky
2012-01-16 18:47     ` Dmitry Chistikov [this message]
2012-01-16 19:00       ` Vladimir Karpinsky
2012-01-16 19:17       ` Vladimir Karpinsky
2012-01-16 19:39         ` Dmitry V. Levin
2012-01-17  9:12           ` Vladimir Karpinsky
2012-01-16 18:03 ` [Comm] Настройка UTC в KDE Vladimir Karpinsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120116184753.GB8965@conflux.foliandre \
    --to=dd1email@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git