时区信息数据库

tz数据库按照自1970年至今的本地时间,将世界划分为不同区域。本图是根据2012c版的数据库,对南极洲之外区域的划分[1]

时区信息数据库,又称TZ databaseZoneinfo database,是一个主要应用于电脑程序以及操作系统的,可协作编辑世界时区信息的数据库[2]。由于该数据库由David Olson创立,因而有些地方也将其称作Olson数据库[3]。数据库由Paul Eggert进行编辑和维护[4]

它的显著特色是由上面提到的Paul Eggert设计的一套通用时区命名规则,例如"America/New_York"和"Europe/Paris"[5]。数据库试图记录自1970年(Unix元年)以来时区和城市的变化[6],并且还包含一些时间的转换,例如夏令时闰秒[7]

历史

该项目可以追溯至1986年之前[8]。项目的数据库和一些涉及到的源代码已经释放到公有领域[9]。通常,数据库会每年更新若干次,并发布变更公告[10]

时区的定义

在时区信息数据库中,“时区”被定义为自1970年当地时间统一的国家及地区[11]。这种定义方法关注于一个具有相同时间的地理区域,它与其他对时区的定义方法不同的是,其他方法关注于不同时区与本初子午线之间的时差。因而数据库中定义的每个时区都会记录一系列对协调世界时的时差,同一时区内一般会包含标准时间和夏令时两种。

时区的命名

为了更容易地理解,每个时区按照“区域/位置”格式,得到一个独有的名称,例如“America/New_York”。英文地名中的空格用下划线“_”代替,连词符“-”只在英文地名本身包含时使用。

区域

“区域”指的是大洲大洋名称以及Etc。大陆和海洋名称中包括:非洲美洲亚洲欧洲大洋洲南极洲太平洋大西洋印度洋北冰洋

Etc用作一些管理时区,具体而言例如“Etc/UTC”,意为协调世界时Coordinated Universal Time)。为了与POSIX标准统一,以“Etc/GMT”标记的时区将保留时区符号,即在格林威治时间(GMT)以西的区域的时区符号为正,以东区域符号为负。

地点

“地点”指的是是在区域中的特定地点的名称,通常是城市或小岛屿的名称。

由于政权更替以及边界的变动,国家名称不能稳定地描述一个区域,故不适合用来命名时区。相比之下,大城市的名称更加固定。然而,数据库的维护者们想为每一个国家代码添加至少一个时区,这样很多用户访问数据库的界面就能够得到优化。另外,(管理者们)还想让时区的地点在地理上更加紧凑,在未来时区可能发生的变化中,不会将原有的时区分割为不同的时区[來源請求]

通常会选择时区内一个人口多的城市作为该时区的名称,也有使用其他城市名称的情况,例如使用一些更加有名或不易引起歧义的城市作为名称[來源請求]。如果一个城市名发生了变化,则会在未来的版本中生成该城市的别名[來源請求],这样无论通过哪个名称访问,结果都会指向数据库中同一条记录。

有时候,“地点”本身也是一个复合名称,例如“America/Indiana/Indianapolis英语America/Indiana/Indianapolis”时区。目前数据库中存在的三级时区名称包括:“America/Argentina/...”、“America/Kentucky/...”、“America/Indiana/...”和“America/North_Dakota/...”。

由于“地点”的命名会选取这个区域具有代表性的名称,因而不是每个城市都有一个以它命名的时区,例如没有“America/Boston”这个时区。此外,数据库中不同位置尽管有不同的名称,它们也有可能目前拥有同一个时区,例如一些历史上曾经分处不同时区(“America/Detroit”和“America/New_York”)和一些在不同国家的位置(“Europe/Prague”和“Europe/Bratislava”)。

时区数据

对于那些有多个时间偏移(通常指的是标准情况和夏令时情况下两个变量)的时区,时区信息数据库会记录准确的偏移变换时刻。数据记录的格式也可以将转换过程中日期和时间的变化记录起来。

Zone.tab文件

zone.tab英语zone.tab文件存在于互联网中,文件格式的相关说明可参考文件中的注释,如下所示:

原文

# This file contains a table with the following columns:
# 1.  ISO 3166 2-character country code.  See the file `iso3166.tab'.
# 2.  Latitude and longitude of the zone's principal location
#     in ISO 6709 sign-degrees-minutes-seconds format,
#     either +-DDMM+-DDDMM or +-DDMMSS+-DDDMMSS,
#     first latitude (+ is north), then longitude (+ is east).
# 3.  Zone name used in value of TZ environment variable.
# 4.  Comments; present if and only if the country has multiple rows.
#
# Columns are separated by a single tab.
# The table is sorted first by country, then an order within the country that
# (1) makes some geographical sense, and
# (2) puts the most populous zones first, where that does not contradict (1).

譯文

文件中的表格包含以下幾列:

  1. ISO 3166 2個字符的國家/地區代碼。詳見文件“iso3166.tab”。
  2. 時區代表位置的經緯度,使用ISO 6709標準(符號-度-分-秒)格式表示,即±度度分分±度度度分分或±度度分分秒秒±度度度分分秒秒。前半部分為緯度(北半球為正數),後半部分為經度(東半球為正數)。
  3. TZ環境變量中使用的時區名稱。
  4. 註解,當且僅當該國家有多行記錄時存在。

列之間以一個定位字元分隔。 表格首先依據國家進行排序,對同一國家內部的不同記錄,以下列方式進行排序:

(1)
按照地理位置進行排序
(2)
在不與(1)衝突的先前下,將人口最多的區域插入首位。

1970年之前的数据

1970年之前的数据由于城市区域的变化需要进行修正,没有必要对整个区域的时区信息进行修正,这是由于新划分的区域仅需要与1970年至今的时钟进行时差比较。

例如,在1963年10月23日至1963年12月9日,巴西只有米纳斯吉拉斯Minas Gerais英语Minas Gerais)、圣埃斯皮里图州Espirito Santo英语Espirito Santo)、里约热内卢州Rio de Janeiro)和圣保罗Sao Paulo英语Sao Paulo)有夏令时,由于自1970年以来圣保罗整个区域内时钟相同,导致一个区域无法从America/Sao_Paulo英语America/Sao Paulo时区中划分出来,这是1970年之前的数据需要修正的原因之一[12]

以柏林时间(Europe/Berlin英语Europe/Berlin)为准的德国标准时间,在1945年之后的英、美、苏三国共同占领区域则是一段时间并未按照柏林时间进行夏令时变换[來源請求]

文件格式

时区信息数据库(Tz database)以文本文件的形式发布,文件以可阅读的形式记录了的条目规则和时区过渡信息。为便于使用,这些文本文件被编译为与操作系统无关的二进制文件,每个时区对应一个文件。相关的代码包括,被称为zic(Zone Information Compiler,时区信息编译器),以及用来读取其他文件,并将文件中的时区信息应用于应用程序接口(例如localtime()mktime())。

维护

时区信息相关的代码和数据库由一群志愿者维护。Arthur David Olson侧重于代码的编辑,Paul Eggert则侧重于数据库。计划变更的条目会被送到项目的邮件列表中,在Usenet的comp.time.tz讨论组中。项目源文件发布在FTP服务器elsie.nci.nih.gov上,这些源文件被类似于Debian的软件发行商编译、打包后成为发行版本中的一部分。终端用户可以通过对发行版本的升级来更新数据库,当然这样更新会有一些滞后,或者直接从ftp://elsie.nci.nih.gov/pub/[永久失效連結] 获得源代码,自己编译生成二进制文件。基于类似原则的一个未来维护计划页面存档备份,存于互联网档案馆)已经由互联网号码分配局起草完成。

其他标准下的应用

通用當地數據儲存庫[13]使用UN/LOCODE对区域进行判断[1]页面存档备份,存于互联网档案馆)。这意味着字符将与国家对应,这是时区信息数据库想要避免的状况。

软件系统中的应用

时区信息数据库用来处理时区和进行时区转换,已经应用于很多的计算机系统中,包括:

通用當地數據儲存庫國際統一碼部件採納了Olson时区编号被采纳。例如,這裡页面存档备份,存于互联网档案馆)是微软Windows操作系统中的时区ID与Olson标准名称的映射关系。

另见

参考文献

  1. ^ Mueller, Erik. A map of the TZ timezones of the world [updated 2012-10-08; archived 2012-08-01; cited 2011-06-16].
  2. ^ Eggert, Paul; Olson, Arthur David. Sources for time zone and daylight saving time data. 2007-11-29 [2007-12-03]. (原始内容存档于2012-08-01). 
  3. ^ Olson, Arthur David. Resolved timezone issue? Other issues. New ctime manual page. tz (邮件列表). 1986-12-16. 
  4. ^ Eggert, Paul. Re: FW: IANA time zone registration - proposal. tz (邮件列表). 2005-01. (原始内容存档于2011-09-27). 
  5. ^ Eggert, Paul. proposal for time zone names. tz (邮件列表). 1993-10-20. 
  6. ^ Olson, Arthur David. Re: ist of issues. tz (邮件列表). 1987-03-18. 
  7. ^ Devine, Bob. leap seconds; [0-60] is ok. tz (邮件列表). 1988-06-02. 
  8. ^ Olson, Arthur David. seismo!elsie!tz ; new versions of time zone stuff. tz (邮件列表). 1986-11-24. 
  9. ^ Eggert, Paul. questions and comments on http://tycho.usno.navy.mil/tzones.html. tz (邮件列表). 1995-11-11. 
  10. ^ zoneinfo tzcode and tzdata archives (FTP). [2007-10-30]. 
  11. ^ Theory (text file), contained in the "tzcode" distribution. Version tzcode2007h.tar.gz 2007-10-01 referenced.
  12. ^ Olson, Arthur David. RE: little nuance in brazil 1963. tz (邮件列表). 2010-01-06 [2011-06-16]. (原始内容存档于2016-04-11). 
  13. ^ CLDR - Unicode Common Locale Data Repository. [2011-06-14]. (原始内容存档于2011-08-07). 
  14. ^ Olson time zone support and setup. AIX 7.1 information. IBM. [2011-03-12]. (原始内容存档于2012-08-01). 
  15. ^ Managing the Time Zone Variable. IBM. 2007-02-02 [2011-03-11]. (原始内容存档于2011-07-13). 
  16. ^ 2007 daylight savings time changes for Unix. Academic Computing and Communications Center, University of Illinois at Chicago. 2007-02-25 [2008-03-18]. (原始内容存档于2012-08-01). )
  17. ^ 17.0 17.1 AIX O/S updated to support 2007 Daylight Saving Time change. IBM. 2007-10-18 [2011-03-12]. (原始内容存档于2012-08-01). 
  18. ^ Wickremasinghe, Christopher. Introduction of daylight saving time in Western Australia 2006. AIX Wiki. IBM. 2009-03-30 [2011-03-11]. (原始内容存档于2012-08-01). 
  19. ^ Oracle Database Globalization Support Guide 10g Release 1 (10.1): Chapter 4, Section "Choosing a Time Zone File". Oracle Corporation. June 2004: 4–14 [2007-10-30]. Part No. B10749-02. (原始内容存档于2008-12-01). 

外部链接

Read other articles:

Víctor Valdés Informasi pribadiNama lengkap Víctor Valdés ArribasTanggal lahir 14 Januari 1982 (umur 41)Tempat lahir L'Hospitalet de Llobregat, SpanyolTinggi 183 cm (6 ft 0 in)Posisi bermain Penjaga gawangKarier junior1992 Barcelona1992–1995 Tenerife1995–2000 BarcelonaKarier senior*Tahun Tim Tampil (Gol)2000 Barcelona C 16 (0)2000–2003 Barcelona B 77 (0)2002–2014 Barcelona 387 (0)2015–2016 Manchester United 2 (0)2016 → Standard Liège (pinjaman) 5 (0)2016�...

Culinary traditions of Oman Kabsa is also known as machboos in the Persian Gulf region. Omani cuisine is part of the Khaleeji cuisine and is influenced by Arab, Pakistani cuisine, Iranian, Indian, Asian, Eastern Mediterranean, and African cuisine,[1] reflecting Oman's position as a vast trading empire at the intersection of traditional spice trade routes.[2] Dishes are often based on chicken, fish, and lamb, as well as the staple of rice. Most Omani dishes tend to contain a ri...

Eleição presidencial na Argentina em 2007   2003 ←  → 2011 28 de outubroDecidida no primeiro turno Candidato Cristina Kirchner Elisa Carrió Partido PJ (FpV) ARI Natural de Santa Cruz Santa Fé Companheiro de chapa Julio Cobos Rubén Giustiniani Vencedor em 21 CABA Votos 8.654.293 4.403.642 Porcentagem 45,29% 23,04% Mapa dos resultados por províncias. Presidente da Argentina Titular Néstor Kirchner PJ (FpV) Eleito Cristina Kirchner PJ (FpV) A eleição preside...

Túmulo de Gigantes[1] Kjæmpehøjen Autor(es) Henrik Ibsen, sob o pseudônimo “Brynjolf Bjarme” Idioma norueguês País  Noruega Gênero teatro Editora Scandinavian Studies and Notes Lançamento 1917 (póstumo) Cronologia Catilina Norma Túmulo de Gigantes, ou O Tumulus,[2] ou Túmulo do Guerreiro[3] (Kjæmpehøjen) foi a segunda peça teatral escrita pelo dramaturgo norueguês Henrik Ibsen, e a primeira a ser produzida. É um drama escrito em 1850,[1] quando Ibsen tinha 22 anos de ...

Johann Sebastian Bach Aanbidding van Christus - Matthias Stom Het Weihnachtsoratorium (BWV 248) (Kerstoratorium; Oratorium Tempore Nativitatis Christi) is een oratorium, bestaande uit zes afzonderlijke, maar inhoudelijk verbonden werken, soms aangeduid als cantates, geschreven door Johann Sebastian Bach voor de periode van kerst 1734 tot en met Driekoningen 1735. De teksten zijn ontleend aan het Evangelie volgens Lucas en het Evangelie volgens Matteüs en waarschijnlijk geschreven door libret...

Conceição do Tocantins   Município do Brasil   Símbolos Hino Lema Com a vontade do povo Gentílico conceicionense Localização Localização de Conceição do Tocantins no TocantinsLocalização de Conceição do Tocantins no Tocantins Conceição do TocantinsLocalização de Conceição do Tocantins no Brasil Mapa de Conceição do Tocantins Coordenadas 12° 13' 08 S 47° 17' 52 O País Brasil Unidade federativa Tocantins Municípios limítrofes Almas...

Peta yang menempatkan Amerika Serikat di tengah Amerisentrisme adalah pemikiran atau kecenderungan untuk menilai kebudayaan atau bangsa lain berdasarkan standar Amerika Serikat atau persepsi Amerika Serikat dalam berita. Istilah ini mengacu pada praktik etnosentris dalam memandang dunia secara eksplisit dari sudut pandang A.S. dengan keyakinan tersirat akan preeminens kebudayaan Amerika Serikat secara sadar atau tidak sadar.[1] Istilah ini sering disalahdampingkan dengan eksepsionalis...

Joachim Herrmann (2022) Joachim Herrmann (* 21. September 1956 in München) ist ein deutscher Politiker der CSU. Herrmann ist seit dem 16. Oktober 2007 Bayerischer Staatsminister des Innern, seit März 2018 hat er zusätzlich die Zuständigkeit für den Bereich Integration[1] und seit November 2018 auch für den Bereich Sport. Seit Oktober 1994 ist er Mitglied des Bayerischen Landtags.[2] Als Staatssekretär im Staatsministerium für Arbeit und Sozialordnung, Familie, Frauen u...

The CommitmentsOfficial poster of London ProductionMusicVariousLyricsVariousBookRoddy DoyleBasis1987 novel The CommitmentsPremiere8 October 2013 (2013-10-08): Palace Theatre, LondonProductions2013 West End 2016 UK and Ireland tour 2021 UK and Ireland tour The Commitments is a jukebox musical written by Roddy Doyle, based on the 1987 novel of the same name, also written by Doyle. Like the novel (and its 1991 film adaptation), the musical is about a group of unemployed Irish yout...

Sam Boyd Stadium 施設情報所在地 7000 East Russell RoadWhitney, NV 89122-8338 USA位置 北緯36度05分11秒 西経115度01分0秒 / 北緯36.08639度 西経115.01667度 / 36.08639; -115.01667座標: 北緯36度05分11秒 西経115度01分0秒 / 北緯36.08639度 西経115.01667度 / 36.08639; -115.01667起工 1970開場 1971年10月23日[1]修繕 1999, 2015拡張 1978, 1999所有者 University of Nevada Las Vegas運用者 Univers...

Julia Roberts di penayangan perdana Homecoming di Festival Film Internasional Toronto 2018 Julia Roberts adalah seorang aktris Amerika Serikat yang membuat debut aktingnya dalam film fitur direct-to-video tahun 1987 Firehouse.[1] Puncak kariernya terjadi pada tahun berikutnya saat membintangi film remaja Mystic Pizza (1988).[2][3][4] Untuk peran pendukungnya dalam film komedi-drama Steel Magnolias (1989), ia meraih Penghargaan Golden Globe untuk Aktris Pendukun...

Nazi concentration camp in Serbia SajmišteConcentration campThe central tower of the Sajmište fairgrounds, 2010.Location of Sajmište within occupied YugoslaviaCoordinates44°48′46″N 20°26′42″E / 44.81278°N 20.44500°E / 44.81278; 20.44500LocationStaro Sajmište, Independent State of CroatiaOperated by  Nazi Germany (September 1941 – May 1944)  Independent State of Croatia (May–July 1944) Original useExhibition centreOperationalSeptember ...

Ruling Family of Abu Dhabi The Ruler Sheikha Salama Sheikh Khaled Sheikha Fatima Sheikh Hamdan Sheikh Hazza Sheikh Mansour Sheikh Abdullah Sheikha Shamsa Sheikh Sultan Sheikh Mohammed Sheikh Saeed Sheikh Issa This box: viewtalkedit Sheikh Khalid bin Zayed Al Nahyan is an Emirati member of the Al Nahyan ruling family of the emirate of Abu Dhabi. The son of Sultan bin Zayed bin Sultan Al Nahyan, Sheikh Khalid graduated from the American University of Sharjah (BSc, International Relations). He c...

American alternative rock band This article is about the band. For the band's first album, see They Might Be Giants (album). For the 1971 film, see They Might Be Giants (film). They Might Be GiantsJohn Flansburgh (left) and John Linnell in 2020Background informationAlso known as TMBG El Grupo De Rock and Roll OriginBrooklyn, New York, U.S.Genres Alternative rock art rock power pop children's music geek rock[1][2][3][4] DiscographyThey Might Be Giants discograph...

This user may have left Wikipedia. Avenged Eightfold has not edited Wikipedia since 8 August 2010. As a result, any requests made here may not receive a response. If you are seeking assistance, you may need to approach someone else. This is Avenged Eightfold's talk page, where you can send them messages and comments. Put new text under old text. Click here to start a new topic. New to Wikipedia? Welcome! Learn to edit; get help. Assume good faith Be polite and avoid personal attacks Be welcom...

American comedian, activist, and television and YouTube personality Franchesca RamseyRamsey in January 2017BornFranchesca Leigh Ramsey (1983-11-29) November 29, 1983 (age 40)West Palm Beach, Florida, U.S.Other namesChescaleighAlma materMiami International University of Art & DesignOccupations Graphic designer actress writer comedian Years active2010–presentSpouse Patrick Kondas ​ ​(m. 2013; div. 2019)​Websitefranchesca....

The Last World First edition (German)AuthorChristoph RansmayrOriginal titleDie letzte WeltTranslatorJohn E. WoodsCountryGermanyLanguageGermanPublisherGrenoPublication date1988Published in English1990Pages319ISBN9783891903445 The Last World (German: Die letzte Welt) is a 1988 novel by the Austrian writer Christoph Ransmayr. Set in an inconsistent time period, it tells the story of a man, Cotta, who travels to Tomi to search for the poet Naso, who had settled there in political exile,...

Greek architect You can help expand this article with text translated from the corresponding article in Greek. (April 2014) Click [show] for important translation instructions. View a machine-translated version of the Greek article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the En...

Release of 21,075 emails associated with the French presidential campaign of Emmanuel Macron French campaign posters before the May 2017 election This article is part of a series aboutEmmanuel Macron Political career President (2017–present) Minister of Economy and Industry (2014–2016) Renaissance Presidency Political positions Protests Yellow vests protests Pension strikes 2019-2020 2023 Benalla affair Aachen Treaty 45th G7 summit COVID-19 pandemic Vaccination Quirinal Treaty AUKUS Opini...

Extinct species of mammal Giant tapirTemporal range: Middle to Late Pleistocene Skeletal reconstruction of the holotype. Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Chordata Class: Mammalia Order: Perissodactyla Family: Tapiridae Genus: Tapirus Species: †T. augustus Binomial name †Tapirus augustusMatthew & Granger, 1923 Synonyms Megatapirus augustus (Matthew & Granger, 1923) A restoration of Tapirus augustus The giant tapir (Tapirus augustus)...