1bc421551SDag-Erling Smørgrav<!DOCTYPE html> 2bc421551SDag-Erling Smørgrav<html lang="en"> 3bc421551SDag-Erling Smørgrav<head> 4bc421551SDag-Erling Smørgrav<title>Time zone and daylight saving time data</title> 5bc421551SDag-Erling Smørgrav<meta charset="UTF-8"> 6bc421551SDag-Erling Smørgrav<style> 7bc421551SDag-Erling Smørgravpre {margin-left: 2em; white-space: pre-wrap;} 8bc421551SDag-Erling Smørgrav</style> 9bc421551SDag-Erling Smørgrav</head> 10bc421551SDag-Erling Smørgrav<body> 11bc421551SDag-Erling Smørgrav<h1>Time zone and daylight saving time data</h1> 12bc421551SDag-Erling Smørgrav<p> 13bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Time_zone">Time zone</a> and 14bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Daylight_saving_time">daylight-saving</a> 15bc421551SDag-Erling Smørgravrules are controlled by individual 16bc421551SDag-Erling Smørgravgovernments. They are sometimes changed with little notice, and their 17bc421551SDag-Erling Smørgravhistories and planned futures are often recorded only fitfully. Here 18bc421551SDag-Erling Smørgravis a summary of attempts to organize and record relevant data in this 19bc421551SDag-Erling Smørgravarea. 20bc421551SDag-Erling Smørgrav</p> 21bc421551SDag-Erling Smørgrav <h3>Outline</h3> 22bc421551SDag-Erling Smørgrav <nav> 23bc421551SDag-Erling Smørgrav <ul> 24bc421551SDag-Erling Smørgrav <li>The <code><abbr>tz</abbr></code> database product and process 25bc421551SDag-Erling Smørgrav <ul> 26bc421551SDag-Erling Smørgrav <li><a href="#tzdb">The <code><abbr>tz</abbr></code> database</a></li> 27bc421551SDag-Erling Smørgrav <li><a href="#download">Downloading the <code><abbr>tz</abbr></code> database</a></li> 28bc421551SDag-Erling Smørgrav <li><a href="#changes">Changes to the <code><abbr>tz</abbr></code> database</a></li> 29*75411d15SDag-Erling Smørgrav <li><a href="#coordinating">Coordinating with governments and distributors</a></li> 30bc421551SDag-Erling Smørgrav <li><a href="#commentary">Commentary on the <code><abbr>tz</abbr></code> database</a></li> 31bc421551SDag-Erling Smørgrav </ul> 32bc421551SDag-Erling Smørgrav </li> 33bc421551SDag-Erling Smørgrav <li>Uses of the <code><abbr>tz</abbr></code> database 34bc421551SDag-Erling Smørgrav <ul> 35bc421551SDag-Erling Smørgrav <li><a href="#web">Web sites using recent versions of the <code><abbr>tz</abbr></code> database</a></li> 36bc421551SDag-Erling Smørgrav <li><a href="#protocols">Network protocols for <code><abbr>tz</abbr></code> data</a></li> 37bc421551SDag-Erling Smørgrav <li><a href="#compilers">Other <code><abbr>tz</abbr></code> compilers</a></li> 38bc421551SDag-Erling Smørgrav <li><a href="#TZif">Other <abbr>TZif</abbr> readers</a></li> 39bc421551SDag-Erling Smørgrav <li><a href="#software">Other <code><abbr>tz</abbr></code>-based time zone software</a></li> 40bc421551SDag-Erling Smørgrav </ul> 41bc421551SDag-Erling Smørgrav </li> 42bc421551SDag-Erling Smørgrav <li>Related data 43bc421551SDag-Erling Smørgrav <ul> 44bc421551SDag-Erling Smørgrav <li><a href="#other-dbs">Other time zone databases</a></li> 45bc421551SDag-Erling Smørgrav <li><a href="#maps">Maps</a></li> 46bc421551SDag-Erling Smørgrav <li><a href="#boundaries">Time zone boundaries</a></li> 47bc421551SDag-Erling Smørgrav </ul> 48bc421551SDag-Erling Smørgrav </li> 49bc421551SDag-Erling Smørgrav <li>Timekeeping concepts 50bc421551SDag-Erling Smørgrav <ul> 51bc421551SDag-Erling Smørgrav <li><a href="#civil">Civil time concepts and history</a></li> 52bc421551SDag-Erling Smørgrav <li><a href="#national">National histories of legal time</a></li> 53bc421551SDag-Erling Smørgrav <li><a href="#costs">Costs and benefits of time shifts</a></li> 54bc421551SDag-Erling Smørgrav <li><a href="#precision">Precision timekeeping</a></li> 55bc421551SDag-Erling Smørgrav <li><a href="#notation">Time notation</a></li> 56bc421551SDag-Erling Smørgrav </ul> 57bc421551SDag-Erling Smørgrav </li> 58bc421551SDag-Erling Smørgrav <li><a href="#see-also">See also</a></li> 59bc421551SDag-Erling Smørgrav </ul> 60bc421551SDag-Erling Smørgrav </nav> 61bc421551SDag-Erling Smørgrav 62bc421551SDag-Erling Smørgrav<section> 63bc421551SDag-Erling Smørgrav<h2 id="tzdb">The <code><abbr title="time zone">tz</abbr></code> database</h2> 64bc421551SDag-Erling Smørgrav<p> 65bc421551SDag-Erling SmørgravThe <a href="https://en.wikipedia.org/wiki/Public_domain">public-domain</a> 66bc421551SDag-Erling Smørgravtime zone database contains code and data 67bc421551SDag-Erling Smørgravthat represent the history of local time 68bc421551SDag-Erling Smørgravfor many representative locations around the globe. 69bc421551SDag-Erling SmørgravIt is updated periodically to reflect changes made by political bodies 70bc421551SDag-Erling Smørgravto time zone boundaries and daylight saving rules. 71bc421551SDag-Erling SmørgravThis database (known as <code><abbr>tz</abbr></code>, 72bc421551SDag-Erling Smørgrav<code><abbr>tzdb</abbr></code>, or <code>zoneinfo</code>) 73bc421551SDag-Erling Smørgravis used by several implementations, 74bc421551SDag-Erling Smørgravincluding 75bc421551SDag-Erling Smørgrav<a href="https://www.gnu.org/software/libc/">the 76bc421551SDag-Erling Smørgrav<abbr title="GNU's Not Unix">GNU</abbr> 77bc421551SDag-Erling SmørgravC Library</a> (used in 78bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Linux"><abbr>GNU</abbr>/Linux</a>), 79bc421551SDag-Erling Smørgrav<a href="https://www.android.com">Android</a>, 80bc421551SDag-Erling Smørgrav<a href="https://www.freebsd.org">Free<abbr 81bc421551SDag-Erling Smørgravtitle="Berkeley Software Distribution">BSD</abbr></a>, 82bc421551SDag-Erling Smørgrav<a href="https://netbsd.org">Net<abbr>BSD</abbr></a>, 83bc421551SDag-Erling Smørgrav<a href="https://www.openbsd.org">Open<abbr>BSD</abbr></a>, 84bc421551SDag-Erling Smørgrav<a href="https://www.chromium.org/chromium-os/">Chromium OS</a>, 85bc421551SDag-Erling Smørgrav<a href="https://cygwin.com">Cygwin</a>, 86bc421551SDag-Erling Smørgrav<a href="https://mariadb.org">MariaDB</a>, 87bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/MINIX">MINIX</a>, 88bc421551SDag-Erling Smørgrav<a href="https://www.mysql.com">MySQL</a>, 89bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/WebOS"><abbr 90bc421551SDag-Erling Smørgravtitle="Web Operating System">webOS</abbr></a>, 91bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/IBM_AIX"><abbr 92bc421551SDag-Erling Smørgravtitle="Advanced Interactive eXecutive">AIX</abbr></a>, 93bc421551SDag-Erling Smørgrav<a href="https://www.apple.com/ios"><abbr 94bc421551SDag-Erling Smørgravtitle="iPhone OS">iOS</abbr></a>, 95bc421551SDag-Erling Smørgrav<a href="https://www.apple.com/macos">macOS</a>, 96bc421551SDag-Erling Smørgrav<a href="https://www.microsoft.com/en-us/windows">Microsoft Windows</a>, 97bc421551SDag-Erling Smørgrav<a href="https://www.vmssoftware.com">Open<abbr 98bc421551SDag-Erling Smørgravtitle="Virtual Memory System">VMS</abbr></a>, 99bc421551SDag-Erling Smørgrav<a href="https://www.oracle.com/database/">Oracle Database</a>, and 100bc421551SDag-Erling Smørgrav<a href="https://www.oracle.com/solaris">Oracle Solaris</a>.</p> 101bc421551SDag-Erling Smørgrav<p> 102bc421551SDag-Erling SmørgravEach main entry in the database represents a <dfn>timezone</dfn> 103bc421551SDag-Erling Smørgravfor a set of civil-time clocks that have all agreed since 1970. 104bc421551SDag-Erling SmørgravTimezones are typically identified by continent or ocean and then by the 105bc421551SDag-Erling Smørgravname of the largest city within the region containing the clocks. 106bc421551SDag-Erling SmørgravFor example, <code>America/New_York</code> 107bc421551SDag-Erling Smørgravrepresents most of the <abbr title="United States">US</abbr> eastern time zone; 108bc421551SDag-Erling Smørgrav<code>America/Phoenix</code> represents most of Arizona, which 109bc421551SDag-Erling Smørgravuses mountain time without daylight saving time (<abbr>DST</abbr>); 110bc421551SDag-Erling Smørgrav<code>America/Detroit</code> represents most of Michigan, which uses 111bc421551SDag-Erling Smørgraveastern time but with different <abbr>DST</abbr> rules in 1975; 112bc421551SDag-Erling Smørgravand other entries represent smaller regions like Starke County, 113bc421551SDag-Erling SmørgravIndiana, which switched from central to eastern time in 1991 114bc421551SDag-Erling Smørgravand switched back in 2006. 115bc421551SDag-Erling SmørgravTo use the database on an extended <a 116bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/POSIX"><abbr 117bc421551SDag-Erling Smørgravtitle="Portable Operating System Interface">POSIX</abbr></a> 118bc421551SDag-Erling Smørgravimplementation set the <code><abbr>TZ</abbr></code> 119bc421551SDag-Erling Smørgravenvironment variable to the location's full name, 120bc421551SDag-Erling Smørgrave.g., <code><abbr>TZ</abbr>="America/New_York"</code>.</p> 121bc421551SDag-Erling Smørgrav<p> 122bc421551SDag-Erling SmørgravAssociated with each timezone is a history of offsets from 123bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Universal_Time">Universal 124bc421551SDag-Erling SmørgravTime</a> (<abbr>UT</abbr>), which is <a 125bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Greenwich_Mean_Time">Greenwich Mean 126bc421551SDag-Erling SmørgravTime</a> (<abbr>GMT</abbr>) with days beginning at midnight; 127bc421551SDag-Erling Smørgravfor timestamps after 1960 this is more precisely <a 128bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Coordinated_Universal_Time">Coordinated 129bc421551SDag-Erling SmørgravUniversal Time</a> (<abbr>UTC</abbr>). 130bc421551SDag-Erling SmørgravThe database also records when daylight saving time was in use, 131bc421551SDag-Erling Smørgravalong with some time zone abbreviations such as <abbr>EST</abbr> 132bc421551SDag-Erling Smørgravfor Eastern Standard Time in the <abbr>US</abbr>.</p> 133bc421551SDag-Erling Smørgrav</section> 134bc421551SDag-Erling Smørgrav 135bc421551SDag-Erling Smørgrav<section> 136bc421551SDag-Erling Smørgrav<h2 id="download">Downloading the <code><abbr>tz</abbr></code> database</h2> 137bc421551SDag-Erling Smørgrav<p> 138bc421551SDag-Erling SmørgravThe following <a 139bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Unix_shell">shell</a> commands download 140bc421551SDag-Erling Smørgravthe latest release's two 141bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Tar_(computing)">tarballs</a> 142bc421551SDag-Erling Smørgravto a <abbr>GNU</abbr>/Linux or similar host.</p> 143bc421551SDag-Erling Smørgrav<pre><code>mkdir tzdb 144bc421551SDag-Erling Smørgravcd tzdb 145bc421551SDag-Erling Smørgrav<a href="https://www.gnu.org/software/wget/">wget</a> https://www.iana.org/time-zones/repository/tzcode-latest.tar.gz 146bc421551SDag-Erling Smørgravwget https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz 147bc421551SDag-Erling Smørgrav<a href="https://www.gnu.org/software/gzip/">gzip</a> -dc tzcode-latest.tar.gz | <a href="https://www.gnu.org/software/tar/">tar</a> -xf - 148bc421551SDag-Erling Smørgravgzip -dc tzdata-latest.tar.gz | tar -xf - 149bc421551SDag-Erling Smørgrav</code></pre> 150bc421551SDag-Erling Smørgrav<p>Alternatively, the following shell commands download the same 151bc421551SDag-Erling Smørgravrelease in a single-tarball format containing extra data 152bc421551SDag-Erling Smørgravuseful for regression testing:</p> 153bc421551SDag-Erling Smørgrav<pre><code>wget <a href="https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz">https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz</a> 154bc421551SDag-Erling Smørgrav<a href="https://www.nongnu.org/lzip/">lzip</a> -dc tzdb-latest.tar.lz | tar -xf - 155bc421551SDag-Erling Smørgrav</code></pre> 156bc421551SDag-Erling Smørgrav<p>These commands use convenience links to the latest release 157bc421551SDag-Erling Smørgravof the <code><abbr>tz</abbr></code> database hosted by the 158bc421551SDag-Erling Smørgrav<a href="https://www.iana.org/time-zones">Time Zone Database website</a> 159bc421551SDag-Erling Smørgravof the <a href="https://www.iana.org">Internet Assigned Numbers 160bc421551SDag-Erling SmørgravAuthority (IANA)</a>. 161bc421551SDag-Erling SmørgravOlder releases are in files named 162bc421551SDag-Erling Smørgrav<code>tzcode<var>V</var>.tar.gz</code>, 163bc421551SDag-Erling Smørgrav<code>tzdata<var>V</var>.tar.gz</code>, and 164bc421551SDag-Erling Smørgrav<code>tzdb-<var>V</var>.tar.lz</code>, 165bc421551SDag-Erling Smørgravwhere <code><var>V</var></code> is the version. 166bc421551SDag-Erling SmørgravSince 1996, each version has been a four-digit year followed by 167bc421551SDag-Erling Smørgravlower-case letter (<samp>a</samp> through <samp>z</samp>, 168bc421551SDag-Erling Smørgravthen <samp>za</samp> through <samp>zz</samp>, then <samp>zza</samp> 169bc421551SDag-Erling Smørgravthrough <samp>zzz</samp>, and so on). 170bc421551SDag-Erling SmørgravSince version 2022a, each release has been distributed in 171bc421551SDag-Erling Smørgrav<a href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pax.html#tag_20_92_13_06">POSIX 172bc421551SDag-Erling Smørgravustar interchange format</a>, compressed as described above; 173*75411d15SDag-Erling Smørgravolder releases use a nearly compatible format. 174bc421551SDag-Erling SmørgravSince version 2016h, each release has contained a text file named 175bc421551SDag-Erling Smørgrav"<samp>version</samp>" whose first (and currently only) line is the version. 176bc421551SDag-Erling SmørgravOlder releases are <a href="https://ftp.iana.org/tz/releases/">archived</a>, 177bc421551SDag-Erling Smørgravand are also available in an 178bc421551SDag-Erling Smørgrav<a href="ftp://ftp.iana.org/tz/releases/"><abbr 179bc421551SDag-Erling Smørgravtitle="File Transfer Protocol">FTP</abbr> directory</a> via a 180*75411d15SDag-Erling Smørgravless secure protocol.</p> 181bc421551SDag-Erling Smørgrav<p>Alternatively, a development repository of code and data can be 182bc421551SDag-Erling Smørgravretrieved from <a href="https://github.com">GitHub</a> via the shell 183bc421551SDag-Erling Smørgravcommand:</p> 184bc421551SDag-Erling Smørgrav<pre><code><a href="https://git-scm.com">git</a> clone <a href="https://github.com/eggert/tz">https://github.com/eggert/tz</a> 185bc421551SDag-Erling Smørgrav</code></pre> 186bc421551SDag-Erling Smørgrav<p> 187bc421551SDag-Erling SmørgravSince version 2012e, each release has been tagged in development repositories. 188bc421551SDag-Erling SmørgravUntagged commits are less well tested and probably contain 189bc421551SDag-Erling Smørgravmore errors.</p> 190bc421551SDag-Erling Smørgrav<p> 191bc421551SDag-Erling SmørgravAfter obtaining the code and data files, see the 192bc421551SDag-Erling Smørgrav<code>README</code> file for what to do next. 193bc421551SDag-Erling SmørgravThe code lets you compile the <code><abbr>tz</abbr></code> source files into 194bc421551SDag-Erling Smørgravmachine-readable binary files, one for each location. The binary files 195bc421551SDag-Erling Smørgravare in a special timezone information format (<dfn><abbr>TZif</abbr></dfn>) 196bc421551SDag-Erling Smørgravspecified by <a href="https://datatracker.ietf.org/doc/html/8536">Internet 197bc421551SDag-Erling Smørgrav<abbr>RFC</abbr> 8536</a>. 198bc421551SDag-Erling SmørgravThe code also lets 199bc421551SDag-Erling Smørgravyou read a <abbr>TZif</abbr> file and interpret timestamps for that 200bc421551SDag-Erling Smørgravlocation.</p> 201bc421551SDag-Erling Smørgrav</section> 202bc421551SDag-Erling Smørgrav 203bc421551SDag-Erling Smørgrav<section> 204bc421551SDag-Erling Smørgrav<h2 id="changes">Changes to the <code><abbr>tz</abbr></code> database</h2> 205bc421551SDag-Erling Smørgrav<p> 206bc421551SDag-Erling SmørgravThe <code><abbr>tz</abbr></code> code and data 207bc421551SDag-Erling Smørgravare by no means authoritative. If you find errors, please 208bc421551SDag-Erling Smørgravsend changes to <a href="mailto:tz@iana.org"><code>tz@iana.org</code></a>, 209bc421551SDag-Erling Smørgravthe time zone mailing list. You can also <a 210bc421551SDag-Erling Smørgravhref="https://mm.icann.org/mailman/listinfo/tz">subscribe</a> to it 211bc421551SDag-Erling Smørgravand browse the <a 212bc421551SDag-Erling Smørgravhref="https://mm.icann.org/pipermail/tz/">archive of old 213bc421551SDag-Erling Smørgravmessages</a>. 214bc421551SDag-Erling Smørgrav<a href="https://tzdata-meta.timtimeonline.com/">Metadata for mailing list 215bc421551SDag-Erling Smørgravdiscussions</a> and corresponding data changes can be 216bc421551SDag-Erling Smørgravgenerated <a href="https://github.com/timparenti/tzdata-meta">automatically</a>. 217bc421551SDag-Erling Smørgrav</p> 218bc421551SDag-Erling Smørgrav<p> 219bc421551SDag-Erling SmørgravChanges to the <code><abbr>tz</abbr></code> code and data are often 220bc421551SDag-Erling Smørgravpropagated to clients via operating system updates, so 221bc421551SDag-Erling Smørgravclient <code><abbr>tz</abbr></code> data can often be corrected by 222bc421551SDag-Erling Smørgravapplying these updates. With GNU/Linux and similar systems, if your 223bc421551SDag-Erling Smørgravmaintenance provider has not yet adopted the 224bc421551SDag-Erling Smørgravlatest <code><abbr>tz</abbr></code> data, you can often short-circuit 225bc421551SDag-Erling Smørgravthe process by tailoring the generic instructions in 226bc421551SDag-Erling Smørgravthe <code><abbr>tz</abbr> README</code> file and installing the latest 227bc421551SDag-Erling Smørgravdata yourself. System-specific instructions for installing the 228bc421551SDag-Erling Smørgravlatest <code><abbr>tz</abbr></code> data have also been published 229bc421551SDag-Erling Smørgravfor <a href="https://developer.ibm.com/articles/au-aix-olson-time-zone/"><abbr>AIX</abbr></a>, 230bc421551SDag-Erling Smørgrav<a 231bc421551SDag-Erling Smørgravhref="https://source.android.com/devices/tech/config/timezone-rules">Android</a>, 232bc421551SDag-Erling Smørgrav<a 233bc421551SDag-Erling Smørgravhref="https://unicode-org.github.io/icu/userguide/datetime/timezone/"><abbr 234bc421551SDag-Erling Smørgravtitle="International Components for Unicode">ICU</abbr></a>, 235bc421551SDag-Erling Smørgrav<a href="https://www.ibm.com/support/pages/java-sdk-time-zone-update-utility"><abbr>IBM</abbr> 236bc421551SDag-Erling SmørgravJDK</a>, 237bc421551SDag-Erling Smørgrav<a href="https://www.joda.org/joda-time/tz_update.html">Joda-Time</a>, <a 238bc421551SDag-Erling Smørgravhref="https://dev.mysql.com/doc/refman/en/time-zone-support.html">MySQL</a>, 239bc421551SDag-Erling Smørgrav<a href="https://nodatime.org/userguide/tzdb">Noda Time</a>, and <a 240bc421551SDag-Erling Smørgravhref="https://www.oracle.com/java/technologies/javase/tzupdater-readme.html">OpenJDK/Oracle JDK</a>. 241bc421551SDag-Erling Smørgrav</p> 242bc421551SDag-Erling Smørgrav<p>Since version 2013a, 243bc421551SDag-Erling Smørgravsources for the <code><abbr>tz</abbr></code> database have been 244bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/UTF-8"><abbr 245bc421551SDag-Erling Smørgravtitle="Unicode Transformation Format 8-bit">UTF-8</abbr></a> 246bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Text_file">text files</a> 247bc421551SDag-Erling Smørgravwith lines terminated by <a href="https://en.wikipedia.org/wiki/Newline"><abbr 248bc421551SDag-Erling Smørgravtitle="linefeed">LF</abbr></a>, 249bc421551SDag-Erling Smørgravwhich can be modified by common text editors such 250bc421551SDag-Erling Smørgravas <a href="https://www.gnu.org/software/emacs/">GNU Emacs</a>, 251bc421551SDag-Erling Smørgrav<a href="https://wiki.gnome.org/Apps/Gedit">gedit</a>, and 252bc421551SDag-Erling Smørgrav<a href="https://www.vim.org">vim</a>. 253bc421551SDag-Erling SmørgravSpecialized source-file editing can be done via the 254bc421551SDag-Erling Smørgrav<a href="https://packagecontrol.io/packages/zoneinfo">Sublime 255bc421551SDag-Erling Smørgravzoneinfo</a> package for <a 256bc421551SDag-Erling Smørgravhref="https://www.sublimetext.com">Sublime Text</a> and the <a 257bc421551SDag-Erling Smørgravhref="https://marketplace.visualstudio.com/items?itemName=gilmoreorless.vscode-zoneinfo">VSCode 258bc421551SDag-Erling Smørgravzoneinfo</a> extension for <a href="https://code.visualstudio.com">Visual 259bc421551SDag-Erling SmørgravStudio Code</a>. 260bc421551SDag-Erling Smørgrav</p> 261bc421551SDag-Erling Smørgrav<p> 262bc421551SDag-Erling SmørgravFor further information about updates, please see 263bc421551SDag-Erling Smørgrav<a href="https://datatracker.ietf.org/doc/html/rfc6557">Procedures for 264bc421551SDag-Erling SmørgravMaintaining the Time Zone Database</a> (Internet <abbr 265bc421551SDag-Erling Smørgravtitle="Request For Comments">RFC</abbr> 6557). More detail can be 266bc421551SDag-Erling Smørgravfound in <a href="theory.html">Theory and pragmatics of the 267bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> code and data</a>. 268bc421551SDag-Erling Smørgrav<a href="https://a0.github.io/a0-tzmigration/">A0 TimeZone Migration</a> 269bc421551SDag-Erling Smørgravdisplays changes between recent <code><abbr>tzdb</abbr></code> versions. 270bc421551SDag-Erling Smørgrav</p> 271bc421551SDag-Erling Smørgrav</section> 272bc421551SDag-Erling Smørgrav 273bc421551SDag-Erling Smørgrav<section> 274*75411d15SDag-Erling Smørgrav<h2 id="coordinating">Coordinating with governments and distributors</h2> 275*75411d15SDag-Erling Smørgrav<p> 276*75411d15SDag-Erling SmørgravAs discussed in 277*75411d15SDag-Erling Smørgrav"<a href="https://www.icann.org/en/blogs/details/how-time-zones-are-coordinated-13-03-2023-en">How 278*75411d15SDag-Erling SmørgravTime Zones Are Coordinated</a>", the time zone database relies on 279*75411d15SDag-Erling Smørgravcollaboration among governments, the time zone database volunteer 280*75411d15SDag-Erling Smørgravcommunity, and data distributors downstream. 281*75411d15SDag-Erling Smørgrav<p> 282*75411d15SDag-Erling SmørgravIf your government plans to change its time zone boundaries or 283*75411d15SDag-Erling Smørgravdaylight saving rules, please send email to <a 284*75411d15SDag-Erling Smørgravhref="mailto:tz@iana.org"><code>tz@iana.org</code></a> well in advance, 285*75411d15SDag-Erling Smørgravas this will lessen confusion and will coordinate updates to many cell phones, 286*75411d15SDag-Erling Smørgravcomputers, and other devices around the world. 287*75411d15SDag-Erling SmørgravIn your email, please cite the legislation or regulation that specifies 288*75411d15SDag-Erling Smørgravthe change, so that it can be checked for details such as the exact times 289*75411d15SDag-Erling Smørgravwhen clock transitions occur. 290*75411d15SDag-Erling SmørgravIt is OK if a rule change is planned to affect clocks 291*75411d15SDag-Erling Smørgravfar into the future, as a long-planned change can easily be reverted 292*75411d15SDag-Erling Smørgravor otherwise altered with a year's notice before the change would have 293*75411d15SDag-Erling Smørgravaffected clocks.</p> 294*75411d15SDag-Erling Smørgrav<p> 295*75411d15SDag-Erling SmørgravThere is no fixed schedule for <code><abbr>tzdb</abbr></code> releases. 296*75411d15SDag-Erling SmørgravHowever, typically a release occurs every few months. 297*75411d15SDag-Erling SmørgravMany downstream timezone data distributors wait for 298*75411d15SDag-Erling Smørgrava <code><abbr>tzdb</abbr></code> release before they produce an update 299*75411d15SDag-Erling Smørgravto time zone behavior in consumer devices and software products. 300*75411d15SDag-Erling SmørgravAfter a release, various parties must integrate, test, 301*75411d15SDag-Erling Smørgravand roll out an update before <a 302*75411d15SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/End_user">end users</a> see changes. 303*75411d15SDag-Erling SmørgravThese updates can be expensive, for both the <a 304*75411d15SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Quality_assurance">quality 305*75411d15SDag-Erling Smørgravassurance</a> process and the overall cost of shipping and installing 306*75411d15SDag-Erling Smørgravupdates to each device's copy of <code><abbr>tzdb</abbr></code>. 307*75411d15SDag-Erling SmørgravUpdates may be batched with other updates and may take substantial 308*75411d15SDag-Erling Smørgravtime to reach end users after a release. 309*75411d15SDag-Erling SmørgravOlder devices may no longer be supported and thus may never be updated, 310*75411d15SDag-Erling Smørgravwhich means they will continue to use out-of-date rules.</p> 311*75411d15SDag-Erling Smørgrav<p> 312*75411d15SDag-Erling SmørgravFor these reasons any rule change should be promulgated at least a 313*75411d15SDag-Erling Smørgravyear before it affects how clocks operate; otherwise, there is a good 314*75411d15SDag-Erling Smørgravchance that many clocks will be wrong due to delays in propagating updates, 315*75411d15SDag-Erling Smørgravand that residents will be confused or even actively resist the change. 316*75411d15SDag-Erling SmørgravThe shorter the notice, the more likely clock problems will arise; see "<a 317*75411d15SDag-Erling Smørgravhref="https://codeofmatt.com/2016/04/23/on-the-timing-of-time-zone-changes/">On 318*75411d15SDag-Erling Smørgravthe Timing of Time Zone Changes</a>" for examples. 319*75411d15SDag-Erling Smørgrav</p> 320*75411d15SDag-Erling Smørgrav</section> 321*75411d15SDag-Erling Smørgrav 322*75411d15SDag-Erling Smørgrav<section> 323bc421551SDag-Erling Smørgrav<h2 id="commentary">Commentary on the <code><abbr>tz</abbr></code> database</h2> 324bc421551SDag-Erling Smørgrav<ul> 325bc421551SDag-Erling Smørgrav<li>The article 326bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Tz_database">tz database</a> is 327bc421551SDag-Erling Smørgravan encyclopedic summary.</li> 328bc421551SDag-Erling Smørgrav<li><a href="tz-how-to.html">How to Read the 329bc421551SDag-Erling Smørgravtz Database Source Files</a> explains the <code><abbr>tz</abbr></code> 330bc421551SDag-Erling Smørgravdatabase format.</li> 331bc421551SDag-Erling Smørgrav<li><a 332bc421551SDag-Erling Smørgravhref="https://blog.jonudell.net/2009/10/23/a-literary-appreciation-of-the-olsonzoneinfotz-database/">A 333bc421551SDag-Erling Smørgravliterary appreciation of the Olson/Zoneinfo/tz database</a> comments on the 334bc421551SDag-Erling Smørgravdatabase's style.</li> 335bc421551SDag-Erling Smørgrav<li><a href="https://doi.org/10.1145/3340301.3341125">What time is it: 336bc421551SDag-Erling Smørgravmanaging time in the internet</a> analyzes the database longitudinally.</li> 337bc421551SDag-Erling Smørgrav</ul> 338bc421551SDag-Erling Smørgrav</section> 339bc421551SDag-Erling Smørgrav 340bc421551SDag-Erling Smørgrav<section> 341bc421551SDag-Erling Smørgrav<h2 id="web">Web sites using recent versions of the 342bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> database</h2> 343bc421551SDag-Erling Smørgrav<p> 344bc421551SDag-Erling SmørgravThese are listed roughly in ascending order of complexity and fanciness. 345bc421551SDag-Erling Smørgrav</p> 346bc421551SDag-Erling Smørgrav<ul> 347bc421551SDag-Erling Smørgrav<li><a href="https://time.is">Time.is</a> shows locations' 348bc421551SDag-Erling Smørgravtime and zones.</li> 349bc421551SDag-Erling Smørgrav<li><a href="https://www.timejones.com">TimeJones.com</a>, 350bc421551SDag-Erling Smørgrav<a href="https://timezoneconverterapp.com">Time Zone Converter</a> and 351bc421551SDag-Erling Smørgrav<a href="https://www.worldclock.com">The World Clock</a> 352bc421551SDag-Erling Smørgravare time zone converters.</li> 353bc421551SDag-Erling Smørgrav<li><a href="https://timezonedb.com/download">TimeZoneDB Database</a> 354bc421551SDag-Erling Smørgravpublishes <code><abbr>tzdb</abbr></code>-derived data in 355bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Comma-separated_values"><abbr 356bc421551SDag-Erling Smørgravtitle="comma-separated values">CSV</abbr></a> and 357bc421551SDag-Erling Smørgravin <a href="https://en.wikipedia.org/wiki/SQL"><abbr 358bc421551SDag-Erling Smørgravtitle="Structured Query Language">SQL</abbr></a> form.</li> 359bc421551SDag-Erling Smørgrav<li><a 360bc421551SDag-Erling Smørgravhref="https://twiki.org/cgi-bin/xtra/tzdatepick.html">Date and Time Gateway</a> 361bc421551SDag-Erling Smørgravlets you see the <code><abbr>TZ</abbr></code> values directly.</li> 362bc421551SDag-Erling Smørgrav<li><a 363bc421551SDag-Erling Smørgravhref="https://www.convertit.com/Go/ConvertIt/World_Time/Current_Time.ASP">Current 364bc421551SDag-Erling SmørgravTime in 1000 Places</a> uses descriptions of the values.</li> 365bc421551SDag-Erling Smørgrav<li><a href="https://home.kpn.nl/vanadovv/time/TZworld.html">Complete 366bc421551SDag-Erling Smørgravtimezone information for all countries</a> 367bc421551SDag-Erling Smørgravdisplays tables of <abbr>DST</abbr> rules. 368bc421551SDag-Erling Smørgrav<li><a href="https://www.timeanddate.com/worldclock/">The World Clock – 369bc421551SDag-Erling SmørgravWorldwide</a> lets you sort zone names and convert times.</li> 370bc421551SDag-Erling Smørgrav<li><a href="https://24timezones.com">24TimeZones</a> has a world 371bc421551SDag-Erling Smørgravtime map and a time converter.</li> 372bc421551SDag-Erling Smørgrav<li><a href="https://www.zeitverschiebung.net/en/">Time Difference</a> 373bc421551SDag-Erling Smørgravcalculates the current time difference between locations.</li> 374bc421551SDag-Erling Smørgrav<li><a href="https://www.wx-now.com">Weather Now</a> and 375bc421551SDag-Erling Smørgrav<a href="https://www.thetimenow.com">The Time Now</a> list the weather too.</li> 376bc421551SDag-Erling Smørgrav</ul> 377bc421551SDag-Erling Smørgrav</section> 378bc421551SDag-Erling Smørgrav 379bc421551SDag-Erling Smørgrav<section> 380bc421551SDag-Erling Smørgrav<h2 id="protocols">Network protocols for <code><abbr>tz</abbr></code> data</h2> 381bc421551SDag-Erling Smørgrav<ul> 382bc421551SDag-Erling Smørgrav<li>The <a href="https://www.ietf.org">Internet Engineering Task Force</a>'s 383bc421551SDag-Erling Smørgrav<a href="https://datatracker.ietf.org/wg/tzdist/charter/">Time Zone Data 384bc421551SDag-Erling SmørgravDistribution Service (tzdist) working group</a> defined <a 385bc421551SDag-Erling Smørgravhref="https://datatracker.ietf.org/doc/html/rfc7808">TZDIST</a> 386bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 7808), a time zone data distribution service, 387bc421551SDag-Erling Smørgravalong with <a href="https://datatracker.ietf.org/doc/html/rfc7809">CalDAV</a> 388bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 7809), a calendar access protocol for 389bc421551SDag-Erling Smørgravtransferring time zone data by reference. 390bc421551SDag-Erling Smørgrav<a href="https://devguide.calconnect.org/Time-Zones/TZDS/">TZDIST 391bc421551SDag-Erling Smørgravimplementations</a> are available. 392bc421551SDag-Erling SmørgravThe <a href="https://www.ietf.org/mailman/listinfo/tzdist-bis">tzdist-bis 393bc421551SDag-Erling Smørgravmailing list</a> discusses possible extensions.</li> 394bc421551SDag-Erling Smørgrav<li>The <a href="https://datatracker.ietf.org/doc/html/rfc5545"> 395bc421551SDag-Erling SmørgravInternet Calendaring and Scheduling Core Object Specification 396bc421551SDag-Erling Smørgrav(iCalendar)</a> (Internet <abbr>RFC</abbr> 5445) 397bc421551SDag-Erling Smørgravcovers time zone 398bc421551SDag-Erling Smørgravdata; see its VTIMEZONE calendar component. 399bc421551SDag-Erling SmørgravThe iCalendar format requires specialized parsers and generators; a 400bc421551SDag-Erling Smørgravvariant <a href="https://datatracker.ietf.org/doc/html/rfc6321">xCal</a> 401bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 6321) uses 402bc421551SDag-Erling Smørgrav<a href="https://www.w3.org/XML/"><abbr 403bc421551SDag-Erling Smørgravtitle="Extensible Markup Language">XML</abbr></a> format, and a variant 404bc421551SDag-Erling Smørgrav<a href="https://datatracker.ietf.org/doc/html/rfc7265">jCal</a> 405bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 7265) 406bc421551SDag-Erling Smørgravuses <a href="https://www.json.org"><abbr 407bc421551SDag-Erling Smørgravtitle="JavaScript Object Notation">JSON</abbr></a> format.</li> 408bc421551SDag-Erling Smørgrav</ul> 409bc421551SDag-Erling Smørgrav</section> 410bc421551SDag-Erling Smørgrav 411bc421551SDag-Erling Smørgrav<section> 412bc421551SDag-Erling Smørgrav<h2 id="compilers">Other <code><abbr>tz</abbr></code> compilers</h2> 413bc421551SDag-Erling Smørgrav<p>Although some of these do not fully support 414bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> data, in recent <code><abbr>tzdb</abbr></code> 415bc421551SDag-Erling Smørgravdistributions you can generally work around compatibility problems by 416bc421551SDag-Erling Smørgravrunning the command <code>make rearguard_tarballs</code> and compiling 417bc421551SDag-Erling Smørgravfrom the resulting tarballs instead.</p> 418bc421551SDag-Erling Smørgrav<ul> 419bc421551SDag-Erling Smørgrav<li><a href="https://sourceforge.net/projects/vzic/">Vzic</a> is a <a 420*75411d15SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/C_(programming_language)">C</a> 421bc421551SDag-Erling Smørgravprogram that compiles 422bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> source into iCalendar-compatible VTIMEZONE files. 423bc421551SDag-Erling SmørgravVzic is freely 424bc421551SDag-Erling Smørgravavailable under the <a 425bc421551SDag-Erling Smørgravhref="https://www.gnu.org/copyleft/gpl.html"><abbr>GNU</abbr> 426bc421551SDag-Erling SmørgravGeneral Public License (<abbr 427bc421551SDag-Erling Smørgravtitle="General Public License">GPL</abbr>)</a>.</li> 428bc421551SDag-Erling Smørgrav<li><a href="https://sourceforge.net/projects/tzical/">tziCal – tz 429bc421551SDag-Erling Smørgravdatabase conversion utility</a> is like Vzic, except for the <a 430bc421551SDag-Erling Smørgravhref="https://dotnet.microsoft.com">.NET framework</a> 431bc421551SDag-Erling Smørgravand with a <abbr>BSD</abbr>-style license.</li> 432bc421551SDag-Erling Smørgrav<li><a 433bc421551SDag-Erling Smørgravhref="https://metacpan.org/release/DateTime-TimeZone">DateTime::TimeZone</a> 434bc421551SDag-Erling Smørgravcontains a script <code>parse_olson</code> that compiles 435bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> source into <a href="https://www.perl.org">Perl</a> 436bc421551SDag-Erling Smørgravmodules. It is part of the Perl <a 437bc421551SDag-Erling Smørgravhref="https://github.com/houseabsolute/DateTime.pm/wiki">DateTime Project</a>, 438bc421551SDag-Erling Smørgravwhich is freely 439bc421551SDag-Erling Smørgravavailable under both the <abbr>GPL</abbr> and the Perl Artistic 440bc421551SDag-Erling SmørgravLicense. DateTime::TimeZone also contains a script 441bc421551SDag-Erling Smørgrav<code>tests_from_zdump</code> that generates test cases for each clock 442bc421551SDag-Erling Smørgravtransition in the <code><abbr>tz</abbr></code> database.</li> 443bc421551SDag-Erling Smørgrav<li>The <a href="https://howardhinnant.github.io/date/tz.html">Time Zone 444bc421551SDag-Erling SmørgravDatabase Parser</a> is a 445*75411d15SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/C++">C++</a> parser and 446bc421551SDag-Erling Smørgravruntime library with <a 447bc421551SDag-Erling Smørgravhref="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0355r7.html">API</a> 448bc421551SDag-Erling Smørgravadopted by 449bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/C++20">C++20</a>, 450bc421551SDag-Erling Smørgravthe current iteration of the C++ standard. 451bc421551SDag-Erling SmørgravIt is freely available under the 452bc421551SDag-Erling Smørgrav<abbr title="Massachusetts Institute of Technology">MIT</abbr> license.</li> 453bc421551SDag-Erling Smørgrav<li><a id="ICU" href="https://icu.unicode.org">International Components for 454bc421551SDag-Erling SmørgravUnicode (<abbr>ICU</abbr>)</a> contains C/C++ and <a 455*75411d15SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Java_(programming_language)">Java</a> 456bc421551SDag-Erling Smørgravlibraries for internationalization that 457bc421551SDag-Erling Smørgravhas a compiler from <code><abbr>tz</abbr></code> source 458bc421551SDag-Erling Smørgravand from <abbr title="Common Locale Data Repository">CLDR</abbr> data 459bc421551SDag-Erling Smørgrav(mentioned <a href="#CLDR">below</a>) 460bc421551SDag-Erling Smørgravinto an <abbr>ICU</abbr>-specific format. 461bc421551SDag-Erling Smørgrav<abbr>ICU</abbr> is freely available under a 462bc421551SDag-Erling Smørgrav<abbr>BSD</abbr>-style license.</li> 463bc421551SDag-Erling Smørgrav<li>The <a href="https://github.com/lau/tzdata">Tzdata</a> package for 464bc421551SDag-Erling Smørgravthe <a href="https://elixir-lang.org">Elixir</a> language downloads 465bc421551SDag-Erling Smørgravand compiles <code><abbr>tz</abbr></code> source and exposes <abbr 466bc421551SDag-Erling Smørgravtitle="Application Program Interface">API</abbr>s for use. It is 467bc421551SDag-Erling Smørgravfreely available under the <abbr>MIT</abbr> license.</li> 468bc421551SDag-Erling Smørgrav<li>Java-based compilers and libraries include: 469bc421551SDag-Erling Smørgrav<ul> 470bc421551SDag-Erling Smørgrav<li>The <a 471bc421551SDag-Erling Smørgravhref="https://www.oracle.com/java/technologies/javase/tzupdater-readme.html">TZUpdater 472bc421551SDag-Erling Smørgravtool</a> compiles <code><abbr>tz</abbr></code> source into the format used by 473bc421551SDag-Erling Smørgrav<a href="https://openjdk.java.net/">OpenJDK</a> and 474bc421551SDag-Erling Smørgrav<a href="https://jdk.java.net/">Oracle JDK</a>. 475bc421551SDag-Erling SmørgravAlthough its source code is proprietary, its executable is available under the 476bc421551SDag-Erling Smørgrav<a href="https://www.oracle.com/a/tech/docs/tzupdater-lic.html">Java SE 477bc421551SDag-Erling SmørgravTimezone Updater License Agreement</a>.</li> 478bc421551SDag-Erling Smørgrav<li>The <a 479bc421551SDag-Erling Smørgravhref="https://www.oracle.com/technetwork/articles/java/jf14-date-time-2125367.html">Java 480bc421551SDag-Erling SmørgravSE 8 Date and Time</a> <abbr>API</abbr> can be supplemented by <a 481bc421551SDag-Erling Smørgravhref="https://www.threeten.org/threeten-extra/">ThreeTen-Extra</a>, 482bc421551SDag-Erling Smørgravwhich is freely available under a <abbr>BSD</abbr>-style license.</li> 483bc421551SDag-Erling Smørgrav<li><a href="https://www.joda.org/joda-time/">Joda-Time – Java date 484bc421551SDag-Erling Smørgravand time <abbr>API</abbr></a> contains a class 485bc421551SDag-Erling Smørgrav<code>org.joda.time.tz.ZoneInfoCompiler</code> that compiles 486bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> source into a binary format. It inspired 487bc421551SDag-Erling SmørgravJava 8 <code>java.time</code>, which its users should migrate to once 488bc421551SDag-Erling Smørgravthey can assume Java 8 or later. It is available under the <a 489bc421551SDag-Erling Smørgravhref="https://www.apache.org/licenses/LICENSE-2.0">Apache License</a>.</li> 490bc421551SDag-Erling Smørgrav<li><a href="https://bell-sw.com/pages/iana-updater/">IANA Updater</a> and <a 491bc421551SDag-Erling Smørgravhref="https://www.azul.com/products/open-source-tools/ziupdater-time-zone-tool/">ZIUpdater</a> 492bc421551SDag-Erling Smørgravare alternatives to TZUpdater. IANA Updater's license is unclear; 493bc421551SDag-Erling SmørgravZIUpdater is licensed under the <abbr>GPL</abbr>.</li> 494bc421551SDag-Erling Smørgrav<li><a href="https://github.com/MenoData/Time4A">Time4A: Advanced date and 495bc421551SDag-Erling Smørgravtime library for Android</a> and 496bc421551SDag-Erling Smørgrav<a href="https://github.com/MenoData/Time4J/">Time4J: Advanced date, 497bc421551SDag-Erling Smørgravtime and interval library for Java</a> compile 498bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> source into a binary format. 499bc421551SDag-Erling SmørgravTime4A is available under the Apache License and Time4J is 500bc421551SDag-Erling Smørgravavailable under the <a 501bc421551SDag-Erling Smørgravhref="https://www.gnu.org/copyleft/lesser.html"><abbr>GNU</abbr> Lesser 502bc421551SDag-Erling SmørgravGeneral Public License (<abbr title="Lesser General Public 503bc421551SDag-Erling SmørgravLicense">LGPL</abbr>)</a>.</li> 504bc421551SDag-Erling Smørgrav<li><abbr>ICU</abbr> (mentioned <a href="#ICU">above</a>) contains compilers and 505bc421551SDag-Erling SmørgravJava-based libraries.</li> 506bc421551SDag-Erling Smørgrav</ul> 507bc421551SDag-Erling Smørgrav<li><a href="https://nodatime.org">Noda Time – Date and 508bc421551SDag-Erling Smørgravtime <abbr>API</abbr> for .NET</a> 509bc421551SDag-Erling Smørgravis like Joda-Time and Time4J, but for the .NET framework instead of Java. 510bc421551SDag-Erling SmørgravIt is freely available under the Apache License.</li> 511bc421551SDag-Erling Smørgrav<li>Many modern 512bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/JavaScript">JavaScript</a> 513bc421551SDag-Erling Smørgravruntimes support <code><abbr>tz</abbr></code> natively via the 514bc421551SDag-Erling Smørgrav<samp>timeZone</samp> option of <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat"><samp>Intl.DateTimeFormat</samp></a>. 515bc421551SDag-Erling SmørgravThis can be used as-is or with most of the following libraries, 516bc421551SDag-Erling Smørgravmany of which also support runtimes lacking the <samp>timeZone</samp> option. 517bc421551SDag-Erling Smørgrav<ul> 518bc421551SDag-Erling Smørgrav<li>The <a 519bc421551SDag-Erling Smørgravhref="https://github.com/formatjs/date-time-format-timezone"><samp>Intl.DateTimeFormat</samp> 520bc421551SDag-Erling Smørgravtimezone polyfill</a> 521bc421551SDag-Erling Smørgravis freely available under a <abbr>BSD</abbr>-style license.</li> 522bc421551SDag-Erling Smørgrav<li>The <a href="https://date-fns.org/">date-fns</a> 523bc421551SDag-Erling Smørgravlibrary manipulates timezone-aware timestamps in browsers and 524bc421551SDag-Erling Smørgravin <a href="https://nodejs.org/en/">Node.js</a>. 525bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 526bc421551SDag-Erling Smørgrav<li><a href="https://github.com/iamkun/dayjs">Day.js</a> is a 527bc421551SDag-Erling Smørgravminimalist replacement for the date and time API of 528bc421551SDag-Erling Smørgravthe <a href="https://momentjs.com/docs/">now-legacy Moment.js</a> date 529bc421551SDag-Erling Smørgravmanipulation library. 530bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 531bc421551SDag-Erling Smørgrav<li><a href="https://moment.github.io/luxon/">Luxon</a> improves 532bc421551SDag-Erling Smørgravtimezone support for the <samp>Intl</samp> API. 533bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 534bc421551SDag-Erling Smørgrav<li><a href="https://momentjs.com/timezone/">Moment Timezone</a> is a 535bc421551SDag-Erling SmørgravMoment.js plugin. 536bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 537bc421551SDag-Erling Smørgrav<li><a href="https://github.com/bigeasy/timezone">Timezone</a> is a 538bc421551SDag-Erling SmørgravJavaScript library that supports date arithmetic that is time zone 539bc421551SDag-Erling Smørgravaware. It is freely available under the <abbr>MIT</abbr> license.</li> 540bc421551SDag-Erling Smørgrav<li><a href="https://www.npmjs.com/package/@tubular/time">@tubular/time</a> 541bc421551SDag-Erling Smørgravsupports live <code><abbr>tzdb</abbr></code> updates, 542bc421551SDag-Erling Smørgravastronomical and atomic time, a command-line interface, 543bc421551SDag-Erling Smørgravand full <a 544bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/TypeScript">TypeScript</a>. 545bc421551SDag-Erling SmørgravIts companion <a 546bc421551SDag-Erling Smørgravhref="https://www.npmjs.com/package/@tubular/time-tzdb">@tubular/time-tzdb</a> 547bc421551SDag-Erling Smørgravcan generate <abbr>TZif</abbr> and other files, and a companion website 548bc421551SDag-Erling Smørgrav<a href="https://tzexplorer.org">Timezone Database Explorer</a> lets you 549bc421551SDag-Erling Smørgravconvert timestamps, view transition histories, and download code and data. 550bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 551bc421551SDag-Erling Smørgrav</ul> 552bc421551SDag-Erling SmørgravThe proposed <a 553bc421551SDag-Erling Smørgravhref="https://github.com/tc39/proposal-temporal"><samp>Temporal</samp> 554bc421551SDag-Erling Smørgravobjects</a> let programs access an abstract view of 555bc421551SDag-Erling Smørgrav<code><abbr>tzdb</abbr></code> data, and are designed to replace <a 556bc421551SDag-Erling Smørgravhref="https://codeofmatt.com/javascript-date-type-is-horribly-broken/">JavaScript's 557bc421551SDag-Erling Smørgravproblematic <samp>Date</samp> objects</a> when working with dates and times. 558bc421551SDag-Erling Smørgrav<li><a href="https://github.com/JuliaTime/">JuliaTime</a> contains a 559bc421551SDag-Erling Smørgravcompiler from <code><abbr>tz</abbr></code> source into 560bc421551SDag-Erling Smørgrav<a href="https://julialang.org/">Julia</a>. It is freely available 561bc421551SDag-Erling Smørgravunder the <abbr>MIT</abbr> license.</li> 562bc421551SDag-Erling Smørgrav<li><a href="https://github.com/pavkam/tzdb"><abbr>TZDB</abbr> – 563bc421551SDag-Erling Smørgrav<abbr>IANA</abbr> Time Zone Database for Delphi/<abbr 564bc421551SDag-Erling Smørgravtitle="Free Pascal Compiler">FPC</abbr></a> 565bc421551SDag-Erling Smørgravcompiles from <code><abbr>tz</abbr></code> source into 566bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Object_Pascal">Object Pascal</a> 567bc421551SDag-Erling Smørgravas compiled by <a href="https://en.wikipedia.org/wiki/Delphi_(IDE)">Delphi</a> 568bc421551SDag-Erling Smørgravand <a 569bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Free_Pascal"><abbr>FPC</abbr></a>. 570bc421551SDag-Erling SmørgravIt is freely available under a <abbr>BSD</abbr>-style license.</li> 571bc421551SDag-Erling Smørgrav<li><a href="http://pytz.sourceforge.net">pytz – World Timezone 572bc421551SDag-Erling SmørgravDefinitions for Python</a> compiles <code><abbr>tz</abbr></code> source into 573bc421551SDag-Erling Smørgrav<a href="https://www.python.org">Python</a>. 574bc421551SDag-Erling SmørgravIt is freely available under a <abbr>BSD</abbr>-style license. 575bc421551SDag-Erling SmørgravIn code that can assume Python 3.6 or later it is largely superseded; see <a 576bc421551SDag-Erling Smørgravhref="https://blog.ganssle.io/articles/2018/03/pytz-fastest-footgun.html">pytz: 577bc421551SDag-Erling SmørgravThe Fastest Footgun in the West</a>.</li> 578bc421551SDag-Erling Smørgrav<li><a href="https://tzinfo.github.io">TZInfo – 579bc421551SDag-Erling SmørgravRuby Timezone Library</a> 580bc421551SDag-Erling Smørgravcompiles <code><abbr>tz</abbr></code> source into 581bc421551SDag-Erling Smørgrav<a href="https://www.ruby-lang.org/en/">Ruby</a>. 582bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 583bc421551SDag-Erling Smørgrav<li>The <a href="https://www.squeaksource.com/Chronos/">Chronos Date/Time 584bc421551SDag-Erling SmørgravLibrary</a> is 585bc421551SDag-Erling Smørgrava <a href="https://en.wikipedia.org/wiki/Smalltalk">Smalltalk</a> class 586bc421551SDag-Erling Smørgravlibrary that compiles <code><abbr>tz</abbr></code> source into a time 587bc421551SDag-Erling Smørgravzone repository whose format 588bc421551SDag-Erling Smørgravis either proprietary or an <abbr>XML</abbr>-encoded 589bc421551SDag-Erling Smørgravrepresentation.</li> 590bc421551SDag-Erling Smørgrav<li><a id="Tcl" href="https://tcl.tk">Tcl</a> 591bc421551SDag-Erling Smørgravcontains a developer-oriented parser that compiles <code><abbr>tz</abbr></code> 592bc421551SDag-Erling Smørgravsource into text files, along with a runtime that can read those 593bc421551SDag-Erling Smørgravfiles. Tcl is freely available under a <abbr>BSD</abbr>-style 594bc421551SDag-Erling Smørgravlicense.</li> 595bc421551SDag-Erling Smørgrav</ul> 596bc421551SDag-Erling Smørgrav</section> 597bc421551SDag-Erling Smørgrav 598bc421551SDag-Erling Smørgrav<section> 599bc421551SDag-Erling Smørgrav<h2 id="TZif">Other <abbr>TZif</abbr> readers</h2> 600bc421551SDag-Erling Smørgrav<ul> 601bc421551SDag-Erling Smørgrav<li>The <a 602bc421551SDag-Erling Smørgravhref="https://www.gnu.org/software/libc/"><abbr>GNU</abbr> C 603bc421551SDag-Erling SmørgravLibrary</a> 604bc421551SDag-Erling Smørgravhas an independent, thread-safe implementation of 605bc421551SDag-Erling Smørgrava <abbr>TZif</abbr> file reader. 606bc421551SDag-Erling SmørgravThis library is freely available under the LGPL 607bc421551SDag-Erling Smørgravand is widely used in <abbr>GNU</abbr>/Linux systems.</li> 608bc421551SDag-Erling Smørgrav<li><a href="https://www.gnome.org">GNOME</a>'s 609bc421551SDag-Erling Smørgrav<a href="https://developer.gnome.org/glib/">GLib</a> has 610bc421551SDag-Erling Smørgrava <abbr>TZif</abbr> file reader written in C that 611bc421551SDag-Erling Smørgravcreates a <code>GTimeZone</code> object representing sets 612bc421551SDag-Erling Smørgravof <abbr>UT</abbr> offsets. 613bc421551SDag-Erling SmørgravIt is freely available under the <abbr>LGPL</abbr>.</li> 614bc421551SDag-Erling Smørgrav<li>The 615bc421551SDag-Erling Smørgrav<a href="https://github.com/bloomberg/bde/wiki">BDE Standard Library</a>'s 616bc421551SDag-Erling Smørgrav<code>baltzo::TimeZoneUtil</code> component contains a C++ 617bc421551SDag-Erling Smørgravimplementation of a <abbr>TZif</abbr> file reader. It is freely available under 618bc421551SDag-Erling Smørgravthe Apache License.</li> 619bc421551SDag-Erling Smørgrav<li><a href="https://github.com/google/cctz">CCTZ</a> is a simple C++ 620bc421551SDag-Erling Smørgravlibrary that translates between <abbr>UT</abbr> and civil time and 621bc421551SDag-Erling Smørgravcan read <abbr>TZif</abbr> files. It is freely available under the Apache 622bc421551SDag-Erling SmørgravLicense.</li> 623bc421551SDag-Erling Smørgrav<li><a href="https://github.com/derickr/timelib">Timelib</a> is a C 624bc421551SDag-Erling Smørgravlibrary that reads <abbr>TZif</abbr> files and converts 625bc421551SDag-Erling Smørgravtimestamps from one time zone or format to another. 626bc421551SDag-Erling SmørgravIt is used by <a href="https://secure.php.net"><abbr 627bc421551SDag-Erling Smørgravtitle="PHP: Hypertext Preprocessor">PHP</abbr></a>, 628bc421551SDag-Erling Smørgrav<a href="https://hhvm.com"><abbr title="HipHop Virtual Machine">HHVM</abbr></a>, 629bc421551SDag-Erling Smørgravand <a href="https://www.mongodb.com">MongoDB</a>. 630bc421551SDag-Erling SmørgravIt is freely available under the <abbr>MIT</abbr> license.</li> 631bc421551SDag-Erling Smørgrav<li>Tcl, mentioned <a href="#Tcl">above</a>, also contains a 632bc421551SDag-Erling Smørgrav<abbr>TZif</abbr> file reader.</li> 633bc421551SDag-Erling Smørgrav<li><a href="https://metacpan.org/pod/DateTime::TimeZone::Tzfile"> 634bc421551SDag-Erling SmørgravDateTime::TimeZone::Tzfile</a> 635bc421551SDag-Erling Smørgravis a <abbr>TZif</abbr> file reader written in Perl. 636bc421551SDag-Erling SmørgravIt is freely available under the same terms as Perl 637bc421551SDag-Erling Smørgrav(dual <abbr>GPL</abbr> and Artistic license).</li> 638bc421551SDag-Erling Smørgrav<li>Python has a <a id="python-zoneinfo" 639bc421551SDag-Erling Smørgravhref="https://docs.python.org/3/library/zoneinfo.html"><code>zoneinfo.ZoneInfo</code> 640bc421551SDag-Erling Smørgravclass</a> that reads <abbr>TZif</abbr> data and creates objects 641bc421551SDag-Erling Smørgravthat represent <code><abbr>tzdb</abbr></code> timezones. 642bc421551SDag-Erling SmørgravPython is freely available under the 643bc421551SDag-Erling Smørgrav<a href="https://docs.python.org/3/license.html">Python Software Foundation 644bc421551SDag-Erling SmørgravLicense</a>. 645bc421551SDag-Erling SmørgravA companion <a id="pypi-tzdata" href="https://pypi.org/">PyPI</a> module 646bc421551SDag-Erling Smørgrav<a href="https://pypi.org/project/tzdata/"><code>tzdata</code></a> 647bc421551SDag-Erling Smørgravsupplies TZif data if the underlying system data cannot be found; 648bc421551SDag-Erling Smørgravit is freely available under the Apache License.</li> 649bc421551SDag-Erling Smørgrav<li>The 650bc421551SDag-Erling Smørgravpublic-domain <a href="https://github.com/dbaron/tz.js">tz.js</a> 651bc421551SDag-Erling Smørgravlibrary contains a Python tool that 652bc421551SDag-Erling Smørgravconverts <abbr>TZif</abbr> data into 653bc421551SDag-Erling Smørgrav<abbr>JSON</abbr>-format data suitable for use 654bc421551SDag-Erling Smørgravin its JavaScript library for time zone conversion. Dates before 1970 655bc421551SDag-Erling Smørgravare not supported.</li> 656bc421551SDag-Erling Smørgrav<li>The <a 657bc421551SDag-Erling Smørgravhref="https://hackage.haskell.org/package/timezone-olson">timezone-olson</a> 658bc421551SDag-Erling Smørgravpackage contains <a href="https://www.haskell.org">Haskell</a> code that 659bc421551SDag-Erling Smørgravparses and uses <abbr>TZif</abbr> data. It is freely 660bc421551SDag-Erling Smørgravavailable under a <abbr>BSD</abbr>-style license.</li> 661bc421551SDag-Erling Smørgrav</ul> 662bc421551SDag-Erling Smørgrav</section> 663bc421551SDag-Erling Smørgrav 664bc421551SDag-Erling Smørgrav<section> 665bc421551SDag-Erling Smørgrav<h2 id="software">Other <code><abbr>tz</abbr></code>-based time zone software</h2> 666bc421551SDag-Erling Smørgrav<ul> 667bc421551SDag-Erling Smørgrav<li><a href="https://foxclocks.org">FoxClocks</a> 668bc421551SDag-Erling Smørgravis an extension for <a href="https://www.google.com/chrome/">Google 669bc421551SDag-Erling SmørgravChrome</a> and for <a 670bc421551SDag-Erling Smørgravhref="https://wiki.mozilla.org/Modules/Toolkit">Mozilla 671bc421551SDag-Erling SmørgravToolkit</a> applications like <a 672bc421551SDag-Erling Smørgravhref="https://www.mozilla.org/en-US/firefox/new/">Firefox</a> and <a 673bc421551SDag-Erling Smørgravhref="https://www.mozilla.org/en-US/thunderbird/">Thunderbird</a>. 674bc421551SDag-Erling SmørgravIt displays multiple clocks in the application window, and has a mapping 675bc421551SDag-Erling Smørgravinterface to <a href="https://www.google.com/earth/">Google Earth</a>. 676bc421551SDag-Erling SmørgravIt is freely available under the <abbr>GPL</abbr>.</li> 677bc421551SDag-Erling Smørgrav<li><a href="https://golang.org">Go programming language</a> 678bc421551SDag-Erling Smørgravimplementations contain a copy of a 32-bit subset of a recent 679bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> database in a 680bc421551SDag-Erling SmørgravGo-specific format.</li> 681bc421551SDag-Erling Smørgrav<li>Microsoft Windows 8.1 682bc421551SDag-Erling Smørgravand later has <code><abbr>tz</abbr></code> data and <abbr>CLDR</abbr> 683bc421551SDag-Erling Smørgravdata (mentioned <a href="#CLDR">below</a>) used by the 684bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Windows_Runtime">Windows Runtime</a> / 685bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Universal_Windows_Platform">Universal Windows Platform</a> classes 686bc421551SDag-Erling Smørgrav<a href="https://docs.microsoft.com/uwp/api/Windows.Globalization.DateTimeFormatting.DateTimeFormatter"><code>DateTimeFormatter</code></a> and 687bc421551SDag-Erling Smørgrav<a href="https://docs.microsoft.com/uwp/api/windows.globalization.calendar"><code>Calendar</code></a>. 688bc421551SDag-Erling Smørgrav<a id="System.TimeZoneInfo" 689bc421551SDag-Erling Smørgravhref="https://blogs.msdn.microsoft.com/bclteam/2007/06/07/exploring-windows-time-zones-with-system-timezoneinfo-josh-free/">Exploring 690bc421551SDag-Erling SmørgravWindows Time Zones with <code>System.TimeZoneInfo</code></a> describes 691bc421551SDag-Erling Smørgravthe older, proprietary method of Microsoft Windows 2000 and later, 692bc421551SDag-Erling Smørgravwhich stores time zone data in the 693bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Windows_Registry">Windows Registry</a>. The 694bc421551SDag-Erling Smørgrav<a 695bc421551SDag-Erling Smørgravhref="https://unicode.org/cldr/charts/latest/supplemental/zone_tzid.html">Zone → 696bc421551SDag-Erling SmørgravTzid table</a> or <a 697bc421551SDag-Erling Smørgravhref="https://github.com/unicode-org/cldr/blob/master/common/supplemental/windowsZones.xml"><abbr>XML</abbr> 698bc421551SDag-Erling Smørgravfile</a> of the <abbr>CLDR</abbr> data maps proprietary zone IDs 699bc421551SDag-Erling Smørgravto <code><abbr>tz</abbr></code> names. 700bc421551SDag-Erling SmørgravThese mappings can be performed programmatically via the <a href="https://github.com/mj1856/TimeZoneConverter">TimeZoneConverter</a> .NET library, 701bc421551SDag-Erling Smørgravor the ICU Java and C++ libraries mentioned <a href="#ICU">above</a>. 702bc421551SDag-Erling Smørgrav<li><a 703bc421551SDag-Erling Smørgravhref="https://www.oracle.com/java/index.html">Oracle 704bc421551SDag-Erling SmørgravJava</a> contains a copy of a subset of a recent 705bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> database in a 706bc421551SDag-Erling SmørgravJava-specific format.</li> 707bc421551SDag-Erling Smørgrav</ul> 708bc421551SDag-Erling Smørgrav</section> 709bc421551SDag-Erling Smørgrav 710bc421551SDag-Erling Smørgrav<section> 711bc421551SDag-Erling Smørgrav<h2 id="other-dbs">Other time zone databases</h2> 712bc421551SDag-Erling Smørgrav<ul> 713bc421551SDag-Erling Smørgrav<li><a href="https://www.astro.com/atlas">Time-zone Atlas</a> 714bc421551SDag-Erling Smørgravis Astrodienst's Web version of Shanks and Pottenger's out-of-print 715bc421551SDag-Erling Smørgravtime zone history atlases 716bc421551SDag-Erling Smørgrav<a href="https://www.worldcat.org/oclc/468828649">for the US</a> and 717bc421551SDag-Erling Smørgrav<a href="https://www.worldcat.org/oclc/76950459">for the world</a>. 718bc421551SDag-Erling SmørgravAlthough these extensive atlases 719bc421551SDag-Erling Smørgrav<a href="https://astrologynewsservice.com/opinion/how-astrologers-contributed-to-the-information-age-a-brief-history-of-time/">were 720bc421551SDag-Erling Smørgravsources for much of the older <code><abbr>tz</abbr></code> data</a>, 721bc421551SDag-Erling Smørgravthey are unreliable as Shanks appears to have 722bc421551SDag-Erling Smørgravguessed many <abbr>UT</abbr> offsets and transitions. The atlases cite no 723bc421551SDag-Erling Smørgravsources and do not indicate which entries are guesswork.</li> 724bc421551SDag-Erling Smørgrav<li><a href="https://en.wikipedia.org/wiki/HP-UX">HP-UX</a> has a database in 725bc421551SDag-Erling Smørgravits own <code>tztab</code>(4) format.</li> 726bc421551SDag-Erling Smørgrav<li>Microsoft Windows has proprietary data mentioned 727bc421551SDag-Erling Smørgrav<a href="#System.TimeZoneInfo">above</a>.</li> 728bc421551SDag-Erling Smørgrav<li><a href="https://www.worldtimeserver.com">World Time Server</a> 729bc421551SDag-Erling Smørgravis another time zone database.</li> 730bc421551SDag-Erling Smørgrav<li>The <a 731bc421551SDag-Erling Smørgravhref="https://www.iata.org/publications/store/Pages/standard-schedules-information.aspx">Standard 732bc421551SDag-Erling SmørgravSchedules Information Manual</a> of the 733bc421551SDag-Erling SmørgravInternational Air Transport Association 734bc421551SDag-Erling Smørgravgives current time zone rules for airports served by commercial aviation.</li> 735bc421551SDag-Erling Smørgrav</ul> 736bc421551SDag-Erling Smørgrav</section> 737bc421551SDag-Erling Smørgrav 738bc421551SDag-Erling Smørgrav<section> 739bc421551SDag-Erling Smørgrav<h2 id="maps">Maps</h2> 740bc421551SDag-Erling Smørgrav<ul> 741bc421551SDag-Erling Smørgrav<li>The <a 742bc421551SDag-Erling Smørgravhref="https://www.cia.gov/the-world-factbook/maps/world-regional/">World 743bc421551SDag-Erling Smørgravand Regional Maps section</a> of <em>The World Factbook</em>, published by the 744bc421551SDag-Erling Smørgrav<a href="https://www.cia.gov">US Central Intelligence 745bc421551SDag-Erling SmørgravAgency (<abbr 746bc421551SDag-Erling Smørgravtitle="Central Intelligence Agency">CIA</abbr>)</a>, contains a time 747bc421551SDag-Erling Smørgravzone map; the 748bc421551SDag-Erling Smørgrav<a 749bc421551SDag-Erling Smørgravhref="https://legacy.lib.utexas.edu/maps/world.html">Perry–Castañeda 750bc421551SDag-Erling SmørgravLibrary Map Collection</a> 751bc421551SDag-Erling Smørgravof the University of Texas at Austin has copies of 752bc421551SDag-Erling Smørgravrecent editions. 753bc421551SDag-Erling SmørgravThe pictorial quality is good, 754bc421551SDag-Erling Smørgravbut the maps do not indicate daylight saving time, 755bc421551SDag-Erling Smørgravand parts of the data are a few years out of date.</li> 756bc421551SDag-Erling Smørgrav<li><a href="https://www.worldtimezone.com">World Time Zone Map 757bc421551SDag-Erling Smørgravwith current time</a> 758bc421551SDag-Erling Smørgravhas several fancy time zone maps; it covers Russia particularly well. 759bc421551SDag-Erling SmørgravThe maps' pictorial quality is not quite as good as the 760bc421551SDag-Erling Smørgrav<abbr>CIA</abbr>'s 761bc421551SDag-Erling Smørgravbut the maps are more up to date.</li> 762bc421551SDag-Erling Smørgrav<li><a 763bc421551SDag-Erling Smørgravhref="https://blog.poormansmath.net/how-much-is-time-wrong-around-the-world/">How 764bc421551SDag-Erling Smørgravmuch is time wrong around the world?</a> maps the difference between 765bc421551SDag-Erling Smørgravmean solar and standard time, highlighting areas such as western China 766bc421551SDag-Erling Smørgravwhere the two differ greatly. It's a bit out of date, unfortunately.</li> 767bc421551SDag-Erling Smørgrav</ul> 768bc421551SDag-Erling Smørgrav</section> 769bc421551SDag-Erling Smørgrav 770bc421551SDag-Erling Smørgrav<section> 771bc421551SDag-Erling Smørgrav<h2 id="boundaries">Time zone boundaries</h2> 772bc421551SDag-Erling Smørgrav<p>Geographical boundaries between timezones are available 773bc421551SDag-Erling Smørgravfrom several <a 774bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Internet_geolocation">Internet 775bc421551SDag-Erling Smørgravgeolocation</a> 776bc421551SDag-Erling Smørgravservices and other sources.</p> 777bc421551SDag-Erling Smørgrav<ul> 778bc421551SDag-Erling Smørgrav<li><a href="https://github.com/evansiroky/timezone-boundary-builder">Timezone 779bc421551SDag-Erling SmørgravBoundary Builder</a> extracts 780bc421551SDag-Erling Smørgrav<a href="https://www.openstreetmap.org">Open Street Map</a> data to build 781bc421551SDag-Erling Smørgravboundaries of <code><abbr>tzdb</abbr></code> timezones. 782bc421551SDag-Erling SmørgravIts code is freely available under the <abbr>MIT</abbr> license, and 783bc421551SDag-Erling Smørgravits data entries are freely available under the 784bc421551SDag-Erling Smørgrav<a href="https://opendatacommons.org/licenses/odbl/">Open Data Commons 785bc421551SDag-Erling SmørgravOpen Database License</a>. The maps' borders appear to be quite accurate.</li> 786bc421551SDag-Erling Smørgrav<li>Programmatic interfaces that map geographical coordinates via tz_world to 787bc421551SDag-Erling Smørgrav<code><abbr>tzdb</abbr></code> timezones include: 788bc421551SDag-Erling Smørgrav<ul> 789bc421551SDag-Erling Smørgrav<li><a href="https://github.com/mj1856/GeoTimeZone">GeoTimeZone</a> is 790bc421551SDag-Erling Smørgravwritten in <a 791bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/C_Sharp_(programming_language)">C#</a> 792bc421551SDag-Erling Smørgravand is freely available under the <abbr>MIT</abbr> license.</li> 793bc421551SDag-Erling Smørgrav<li>The <a href="https://github.com/bradfitz/latlong">latlong package</a> 794bc421551SDag-Erling Smørgravis written in Go and is freely available under the Apache License.</li> 795bc421551SDag-Erling Smørgrav<li><a href="https://github.com/drtimcooper/LatLongToTimezone">LatLongToTimezone</a>, 796bc421551SDag-Erling Smørgravin both Java and 797bc421551SDag-Erling Smørgrav<a href="https://en.wikipedia.org/wiki/Swift_(programming_language)">Swift</a> 798bc421551SDag-Erling Smørgravform, is freely available under the MIT license.</li> 799bc421551SDag-Erling Smørgrav<li>For Node.js, 800bc421551SDag-Erling Smørgravthe <a href="https://www.npmjs.com/package/geo-tz">geo-tz module</a> 801bc421551SDag-Erling Smørgravis freely available under the MIT license, and 802bc421551SDag-Erling Smørgravthe <a href="https://www.npmjs.com/package/tz-lookup">tz-lookup module</a> 803bc421551SDag-Erling Smørgravis in the public domain.</li> 804bc421551SDag-Erling Smørgrav<li>The <a 805bc421551SDag-Erling Smørgravhref="https://github.com/MrMinimal64/timezonefinder">timezonefinder</a> 806bc421551SDag-Erling Smørgravlibrary for Python is freely available under the MIT license. 807bc421551SDag-Erling Smørgrav<li>The <a 808bc421551SDag-Erling Smørgravhref="https://github.com/gunyarakun/timezone_finder">timezone_finder</a> 809bc421551SDag-Erling Smørgravlibrary for Ruby is freely available under the MIT license.</li> 810bc421551SDag-Erling Smørgrav</ul></li> 811bc421551SDag-Erling Smørgrav<li>Free access via a network API, if you register a key, is provided by 812bc421551SDag-Erling Smørgravthe <a 813bc421551SDag-Erling Smørgravhref="https://www.geonames.org/export/web-services.html#timezone">GeoNames 814bc421551SDag-Erling SmørgravTimezone web service</a>, the <a 815bc421551SDag-Erling Smørgravhref="https://developers.google.com/maps/documentation/timezone/intro">Google 816bc421551SDag-Erling SmørgravMaps Time Zone API</a>, and 817bc421551SDag-Erling Smørgravthe <a href="https://timezonedb.com/api">TimeZoneDB API</a>. 818bc421551SDag-Erling SmørgravCommercial network API access is provided 819bc421551SDag-Erling Smørgravby <a href="https://askgeo.com">AskGeo</a> 820bc421551SDag-Erling Smørgravand <a href="https://www.geogarage.com/blog/news-1/post/geogarage-time-zone-api-31">GeoGarage</a>. 821bc421551SDag-Erling Smørgrav</li> 822bc421551SDag-Erling Smørgrav<li>"<a 823bc421551SDag-Erling Smørgravhref="https://stackoverflow.com/questions/16086962/how-to-get-a-time-zone-from-a-location-using-latitude-and-longitude-coordinates/16086964">How 824bc421551SDag-Erling Smørgravto get a time zone from a location using latitude and longitude 825bc421551SDag-Erling Smørgravcoordinates?</a>" discusses other geolocation possibilities.</li> 826bc421551SDag-Erling Smørgrav<li><a href="http://statoids.com/statoids.html">Administrative 827bc421551SDag-Erling SmørgravDivisions of Countries ("Statoids")</a> lists 828bc421551SDag-Erling Smørgravpolitical subdivision data related to time zones.</li> 829bc421551SDag-Erling Smørgrav<li><a href="https://home.kpn.nl/vanadovv/time/Multizones.html">Time 830bc421551SDag-Erling Smørgravzone boundaries for multizone countries</a> summarizes legal 831bc421551SDag-Erling Smørgravboundaries between time zones within countries.</li> 832bc421551SDag-Erling Smørgrav<li><a href="https://manifold.net/info/freestuff.shtml">Manifold Software 833bc421551SDag-Erling Smørgrav– GIS and Database Tools</a> includes a Manifold-format map of 834bc421551SDag-Erling Smørgravworld time zone boundaries distributed under the 835bc421551SDag-Erling Smørgrav<abbr>GPL</abbr>.</li> 836bc421551SDag-Erling Smørgrav<li>A ship within the <a 837bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Territorial_waters">territorial 838bc421551SDag-Erling Smørgravwaters</a> of any nation uses that nation's time. In international 839bc421551SDag-Erling Smørgravwaters, time zone boundaries are meridians 15° apart, except that 840bc421551SDag-Erling Smørgrav<abbr>UT</abbr>−12 and <abbr>UT</abbr>+12 are each 7.5° 841bc421551SDag-Erling Smørgravwide and are separated by 842bc421551SDag-Erling Smørgravthe 180° meridian (not by the International Date Line, which is 843bc421551SDag-Erling Smørgravfor land and territorial waters only). A captain can change ship's 844bc421551SDag-Erling Smørgravclocks any time after entering a new time zone; midnight changes are 845bc421551SDag-Erling Smørgravcommon.</li> 846bc421551SDag-Erling Smørgrav</ul> 847bc421551SDag-Erling Smørgrav</section> 848bc421551SDag-Erling Smørgrav 849bc421551SDag-Erling Smørgrav<section> 850bc421551SDag-Erling Smørgrav<h2 id="civil">Civil time concepts and history</h2> 851bc421551SDag-Erling Smørgrav<ul> 852bc421551SDag-Erling Smørgrav<li><a href="https://www.nist.gov/pml/time-and-frequency-division/popular-links/walk-through-time">A 853bc421551SDag-Erling SmørgravWalk through Time</a> 854bc421551SDag-Erling Smørgravsurveys the evolution of timekeeping.</li> 855bc421551SDag-Erling Smørgrav<li>The history of daylight saving time is surveyed in <a 856bc421551SDag-Erling Smørgravhref="http://www.webexhibits.org/daylightsaving/">About Daylight 857bc421551SDag-Erling SmørgravSaving Time – History, rationale, laws & dates</a> and summarized in 858bc421551SDag-Erling Smørgrav<a href="http://seizethedaylight.com/dst/">A Brief 859bc421551SDag-Erling SmørgravHistory of Daylight Saving Time</a>.</li> 860bc421551SDag-Erling Smørgrav<li><a href="https://www.laphamsquarterly.org/roundtable/time-lords">Time 861bc421551SDag-Erling SmørgravLords</a> discusses how authoritarians manipulate civil time.</li> 862bc421551SDag-Erling Smørgrav<li><a href="https://www.w3.org/TR/timezone/">Working with Time Zones</a> 863bc421551SDag-Erling Smørgravcontains guidelines and best practices for software applications that 864bc421551SDag-Erling Smørgravdeal with civil time.</li> 865bc421551SDag-Erling Smørgrav<li><a href="https://www.staff.science.uu.nl/~gent0113/idl/idl.htm">A History of 866bc421551SDag-Erling Smørgravthe International Date Line</a> tells the story of the most important 867bc421551SDag-Erling Smørgravtime zone boundary.</li> 868bc421551SDag-Erling Smørgrav<li><a href="http://statoids.com/tconcept.html">Basic Time 869bc421551SDag-Erling SmørgravZone Concepts</a> discusses terminological issues behind time zones.</li> 870bc421551SDag-Erling Smørgrav</ul> 871bc421551SDag-Erling Smørgrav</section> 872bc421551SDag-Erling Smørgrav 873bc421551SDag-Erling Smørgrav<section> 874bc421551SDag-Erling Smørgrav<h2 id="national">National histories of legal time</h2> 875bc421551SDag-Erling Smørgrav<dl> 876bc421551SDag-Erling Smørgrav<dt>Australia</dt> 877bc421551SDag-Erling Smørgrav<dd>The Parliamentary Library commissioned a <a 878bc421551SDag-Erling Smørgravhref="https://www.aph.gov.au/binaries/library/pubs/rp/2009-10/10rp10.pdf">research 879bc421551SDag-Erling Smørgravpaper on daylight saving time in Australia</a>. 880bc421551SDag-Erling SmørgravThe Bureau of Meteorology publishes a list of <a 881bc421551SDag-Erling Smørgravhref="http://www.bom.gov.au/climate/averages/tables/dst_times.shtml">Implementation 882bc421551SDag-Erling SmørgravDates of Daylight Savings Time within Australia</a>.</dd> 883bc421551SDag-Erling Smørgrav<dt>Belgium</dt> 884bc421551SDag-Erling Smørgrav<dd>The Royal Observatory of Belgium maintains a table of time in 885bc421551SDag-Erling SmørgravBelgium (in 886bc421551SDag-Erling Smørgrav<a href="https://www.astro.oma.be/GENERAL/INFO/nli001a.html" 887bc421551SDag-Erling Smørgravhreflang="nl">Dutch</a> and <a 888bc421551SDag-Erling Smørgravhref="https://www.astro.oma.be/GENERAL/INFO/fri001a.html" 889bc421551SDag-Erling Smørgravhreflang="fr">French</a>).</dd> 890bc421551SDag-Erling Smørgrav<dt>Brazil</dt> 891bc421551SDag-Erling Smørgrav<dd>The Time Service Department of the National Observatory 892bc421551SDag-Erling Smørgravrecords <a href="http://pcdsh01.on.br/DecHV.html" 893bc421551SDag-Erling Smørgravhreflang="pt-BR">Brazil's daylight saving time decrees (in 894bc421551SDag-Erling SmørgravPortuguese)</a>.</dd> 895bc421551SDag-Erling Smørgrav<dt>Canada</dt> 896bc421551SDag-Erling Smørgrav<dd>National Research Council Canada publishes current 897bc421551SDag-Erling Smørgravand some older information about <a 898bc421551SDag-Erling Smørgravhref="https://nrc.canada.ca/en/certifications-evaluations-standards/canadas-official-time/time-zones-daylight-saving-time">time 899bc421551SDag-Erling Smørgravzones and daylight saving time</a>.</dd> 900bc421551SDag-Erling Smørgrav<dt>Chile</dt> 901bc421551SDag-Erling Smørgrav<dd>The Hydrographic and Oceanographic Service of the Chilean Navy publishes a 902bc421551SDag-Erling Smørgrav<a href="https://www.horaoficial.cl/historia_hora.php" hreflang="es">history of 903bc421551SDag-Erling SmørgravChile's official time (in Spanish)</a>.</dd> 904bc421551SDag-Erling Smørgrav<dt>China</dt> 905bc421551SDag-Erling Smørgrav<dd>The Hong Kong Observatory maintains a 906bc421551SDag-Erling Smørgrav<a href="https://www.hko.gov.hk/en/gts/time/Summertime.htm">history of 907bc421551SDag-Erling Smørgrav summer time in Hong Kong</a>, 908bc421551SDag-Erling Smørgravand Macau's Meteorological and Geophysical Bureau maintains a <a 909bc421551SDag-Erling Smørgravhref="https://www.smg.gov.mo/en/subpage/224/page/174">similar 910bc421551SDag-Erling Smørgravhistory for Macau</a>. 911bc421551SDag-Erling SmørgravUnfortunately the latter is incomplete and has errors.</dd> 912bc421551SDag-Erling Smørgrav<dt>Czech Republic</dt> 913bc421551SDag-Erling Smørgrav<dd><a href="https://kalendar.beda.cz/kdy-zacina-a-konci-letni-cas" 914bc421551SDag-Erling Smørgravhreflang="cs">When daylight saving time starts and ends (in Czech)</a> 915bc421551SDag-Erling Smørgravsummarizes and cites historical <abbr>DST</abbr> regulations.</dd> 916bc421551SDag-Erling Smørgrav<dt>Germany</dt> 917bc421551SDag-Erling Smørgrav<dd>The National Institute for Science and Technology maintains the <a 918bc421551SDag-Erling Smørgravhref="https://www.ptb.de/cms/en/fachabteilungen/abt4/fb-44/ag-441/realisation-of-legal-time-in-germany.html">Realisation 919bc421551SDag-Erling Smørgravof Legal Time in Germany</a>.</dd> 920bc421551SDag-Erling Smørgrav<dt>Israel</dt> 921bc421551SDag-Erling Smørgrav<dd>The Interior Ministry periodically issues <a 922bc421551SDag-Erling Smørgravhref="ftp://ftp.cs.huji.ac.il/pub/tz/announcements" 923bc421551SDag-Erling Smørgravhreflang="he">announcements (in Hebrew)</a>.</dd> 924bc421551SDag-Erling Smørgrav<dt>Malaysia</dt> 925bc421551SDag-Erling Smørgrav<dd>See Singapore <a href="#Singapore">below</a>.</dd> 926bc421551SDag-Erling Smørgrav<dt>Mexico</dt> 927bc421551SDag-Erling Smørgrav<dd>The Investigation and Analysis Service of the Mexican Library of 928bc421551SDag-Erling SmørgravCongress has published a <a 929bc421551SDag-Erling Smørgravhref="https://www.diputados.gob.mx/bibliot/publica/inveyana/polisoc/horver/index.htm" 930bc421551SDag-Erling Smørgravhreflang="es">history of Mexican local time (in Spanish)</a>.</dd> 931bc421551SDag-Erling Smørgrav<dt>Netherlands</dt> 932bc421551SDag-Erling Smørgrav<dd><a href="https://www.staff.science.uu.nl/~gent0113/wettijd/wettijd.htm" 933bc421551SDag-Erling Smørgravhreflang="nl">Legal time in the Netherlands (in Dutch)</a> 934bc421551SDag-Erling Smørgravcovers the history of local time in the Netherlands from ancient times.</dd> 935bc421551SDag-Erling Smørgrav<dt>New Zealand</dt> 936bc421551SDag-Erling Smørgrav<dd>The Department of Internal Affairs maintains a brief <a 937bc421551SDag-Erling Smørgravhref="https://www.dia.govt.nz/Daylight-Saving-History">History of 938bc421551SDag-Erling SmørgravDaylight Saving</a>.</dd> 939*75411d15SDag-Erling Smørgrav<dt>Palestine</dt> 940*75411d15SDag-Erling Smørgrav<dd>The Ministry of Telecom and IT publishes a <a 941*75411d15SDag-Erling Smørgravhref="https://mtit.pna.ps/Site/TimeZoon" 942*75411d15SDag-Erling Smørgravhreflang="ar">history of clock changes (in Arabic)</a>.</dd> 943bc421551SDag-Erling Smørgrav<dt>Portugal</dt> 944bc421551SDag-Erling Smørgrav<dd>The Lisbon Astronomical Observatory publishes a 945bc421551SDag-Erling Smørgrav<a href="https://oal.ul.pt/hora-legal/" hreflang="pt">history of 946bc421551SDag-Erling Smørgravlegal time (in Portuguese)</a>.</dd> 947bc421551SDag-Erling Smørgrav<dt>Singapore</dt> 948bc421551SDag-Erling Smørgrav<dd><a id="Singapore" 949bc421551SDag-Erling Smørgravhref="https://web.archive.org/web/20190822231045/http://www.math.nus.edu.sg/~mathelmr/teaching/timezone.html">Why 950bc421551SDag-Erling Smørgravis Singapore in the "Wrong" Time Zone?</a> details the 951bc421551SDag-Erling Smørgravhistory of legal time in Singapore and Malaysia.</dd> 952bc421551SDag-Erling Smørgrav<dt>United Kingdom</dt> 953bc421551SDag-Erling Smørgrav<dd><a 954bc421551SDag-Erling Smørgravhref="https://www.polyomino.org.uk/british-time/">History of 955bc421551SDag-Erling Smørgravlegal time in Britain</a> discusses in detail the country 956bc421551SDag-Erling Smørgravwith perhaps the best-documented history of clock adjustments.</dd> 957bc421551SDag-Erling Smørgrav<dt>United States</dt> 958bc421551SDag-Erling Smørgrav<dd>The Department of Transportation's <a 959bc421551SDag-Erling Smørgravhref="https://www.transportation.gov/regulations/recent-time-zone-proceedings">Recent 960bc421551SDag-Erling SmørgravTime Zone Proceedings</a> lists changes to time zone boundaries.</dd> 961bc421551SDag-Erling Smørgrav<dt>Uruguay</dt> 962bc421551SDag-Erling Smørgrav<dd>The Oceanography, Hydrography, and Meteorology Service of the Uruguayan 963bc421551SDag-Erling SmørgravNavy (SOHMA) publishes an annual <a 964bc421551SDag-Erling Smørgravhref="https://sohma.armada.mil.uy/index.php/servicios/datos-astronomicos" hreflang="es">almanac 965bc421551SDag-Erling Smørgrav(in Spanish)</a>.</dd> 966bc421551SDag-Erling Smørgrav</dl> 967bc421551SDag-Erling Smørgrav</section> 968bc421551SDag-Erling Smørgrav 969bc421551SDag-Erling Smørgrav<section> 970bc421551SDag-Erling Smørgrav<h2 id="costs">Costs and benefits of time shifts</h2> 971bc421551SDag-Erling Smørgrav<p>Various sources argue for and against daylight saving time and time 972bc421551SDag-Erling Smørgravzone shifts, and many scientific studies have been conducted. This 973bc421551SDag-Erling Smørgravsection summarizes reviews and position statements based on 974bc421551SDag-Erling Smørgravscientific literature in the area.</p> 975bc421551SDag-Erling Smørgrav<ul> 976bc421551SDag-Erling Smørgrav<li>Carey RN, Sarma KM. 977bc421551SDag-Erling Smørgrav<a href="https://bmjopen.bmj.com/content/7/6/e014319.long">Impact of 978bc421551SDag-Erling Smørgravdaylight saving time on road traffic collision risk: a systematic 979bc421551SDag-Erling Smørgravreview</a>. 980bc421551SDag-Erling Smørgrav<em>BMJ Open.</em> 2017;7(6):e014319. doi:<a href="https://doi.org/10.1136/bmjopen-2016-014319">10.1136/bmjopen-2016-014319</a>. 981bc421551SDag-Erling SmørgravThis reviews research literature and concludes that the evidence 982bc421551SDag-Erling Smørgravneither supports nor refutes road safety benefits from 983bc421551SDag-Erling Smørgravshifts in time zones.</li> 984bc421551SDag-Erling Smørgrav<li>Havranek T, Herman D, Irsova D. 985bc421551SDag-Erling Smørgrav<a href="https://www.iaee.org/en/publications/ejarticle.aspx?id=3051">Does 986bc421551SDag-Erling Smørgravdaylight saving save electricity? A meta-analysis.</a> 987bc421551SDag-Erling Smørgrav<em>Energy J.</em> 2018;39(2):35–61. 988bc421551SDag-Erling Smørgravdoi:<a href="https://doi.org/10.5547/01956574.39.2.thav">10.5547/01956574.39.2.thav</a>. 989bc421551SDag-Erling SmørgravThis analyzes research literature and concludes, "Electricity savings 990bc421551SDag-Erling Smørgravare larger for countries farther away from the equator, while 991bc421551SDag-Erling Smørgravsubtropical regions consume more electricity because of <abbr>DST</abbr>."</li> 992bc421551SDag-Erling Smørgrav<li>Rishi MA, Ahmed O, Barrantes Perez JH <em>et al</em>. 993bc421551SDag-Erling Smørgrav<a href="https://jcsm.aasm.org/doi/10.5664/jcsm.8780">Daylight saving time: 994bc421551SDag-Erling Smørgravan American Academy of Sleep Medicine position statement</a>. 995bc421551SDag-Erling Smørgrav<em>J Clin Sleep Med.</em> 996bc421551SDag-Erling Smørgrav2020;<a href="https://doi.org/10.5664/jcsm.8780">10.5664/jcsm.8780</a>. 997bc421551SDag-Erling SmørgravThis argues for permanent standard time due to health risks of both 998bc421551SDag-Erling Smørgrav<abbr>DST</abbr> transitions and permanent <abbr>DST</abbr>.</li> 999bc421551SDag-Erling Smørgrav<li>Roenneberg T, Wirz-Justice A, Skene DJ <em>et al</em>. 1000bc421551SDag-Erling Smørgrav<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7205184/">Why 1001bc421551SDag-Erling Smørgravshould we abolish Daylight Saving Time?</a> 1002bc421551SDag-Erling Smørgrav<em>J Biol Rhythms</em>. 2019;34(3):227–230. 1003bc421551SDag-Erling Smørgravdoi:<a href="https://doi.org/10.1177/0748730419854197">10.1177/0748730419854197</a>. 1004bc421551SDag-Erling SmørgravThis position paper of the Society for Research on Biological Rhythms 1005bc421551SDag-Erling Smørgravopposes DST changes and permanent DST, and advocates that governments adopt 1006bc421551SDag-Erling Smørgrav"permanent Standard Time for the health and safety of their citizens".</li> 1007bc421551SDag-Erling Smørgrav</ul> 1008bc421551SDag-Erling Smørgrav</section> 1009bc421551SDag-Erling Smørgrav 1010bc421551SDag-Erling Smørgrav<section> 1011bc421551SDag-Erling Smørgrav<h2 id="precision">Precision timekeeping</h2> 1012bc421551SDag-Erling Smørgrav<ul> 1013bc421551SDag-Erling Smørgrav<li><a 1014bc421551SDag-Erling Smørgravhref="http://leapsecond.com/hpan/an1289.pdf">The 1015bc421551SDag-Erling SmørgravScience of Timekeeping</a> is a thorough introduction 1016bc421551SDag-Erling Smørgravto the theory and practice of precision timekeeping.</li> 1017bc421551SDag-Erling Smørgrav<li><a href="https://doi.org/10.1007/978-3-319-59909-0">The Science of 1018*75411d15SDag-Erling SmørgravTime 2016</a> contains several freely readable papers.</li> 1019bc421551SDag-Erling Smørgrav<li><a href="https://www.ntp.org"><abbr 1020bc421551SDag-Erling Smørgravtitle="Network Time Protocol">NTP</abbr>: The Network 1021bc421551SDag-Erling SmørgravTime Protocol</a> (Internet <abbr>RFC</abbr> 5905) 1022bc421551SDag-Erling Smørgravdiscusses how to synchronize clocks of 1023bc421551SDag-Erling SmørgravInternet hosts.</li> 1024bc421551SDag-Erling Smørgrav<li>The <a href="https://www.usenix.org/system/files/conference/nsdi18/nsdi18-geng.pdf"><span style="font-variant: small-caps">Huygens</span></a> 1025bc421551SDag-Erling Smørgravfamily of software algorithms can achieve accuracy to a few tens of 1026bc421551SDag-Erling Smørgravnanoseconds in scalable server farms without special hardware.</li> 1027bc421551SDag-Erling Smørgrav<li>The <a 1028bc421551SDag-Erling Smørgravhref="https://www.nist.gov/intelligent-systems-division/ieee-1588">Precision 1029bc421551SDag-Erling SmørgravTime Protocol</a> (<abbr 1030bc421551SDag-Erling Smørgravtitle="Institute of Electrical and Electronics Engineers">IEEE</abbr> 1588) 1031bc421551SDag-Erling Smørgravcan achieve submicrosecond clock accuracy on a local area network 1032bc421551SDag-Erling Smørgravwith special-purpose hardware.</li> 1033bc421551SDag-Erling Smørgrav<li><a 1034bc421551SDag-Erling Smørgravhref="https://datatracker.ietf.org/doc/html/rfc4833">Timezone 1035bc421551SDag-Erling SmørgravOptions for <abbr title="Dynamic Host Configuration Protocol">DHCP</abbr></a> 1036bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 4833) 1037bc421551SDag-Erling Smørgravspecifies a <a 1038bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol"><abbr>DHCP</abbr></a> 1039bc421551SDag-Erling Smørgravoption for a server to configure 1040bc421551SDag-Erling Smørgrava client's time zone and daylight saving settings automatically.</li> 1041bc421551SDag-Erling Smørgrav<li><a href="https://www.ucolick.org/~sla/leapsecs/timescales.html">Time 1042bc421551SDag-Erling SmørgravScales</a> describes astronomical time scales like 1043bc421551SDag-Erling Smørgrav<abbr title="Terrestrial Dynamic Time">TDT</abbr>, 1044bc421551SDag-Erling Smørgrav<abbr title="Geocentric Coordinate Time">TCG</abbr>, and 1045bc421551SDag-Erling Smørgrav<abbr title="Barycentric Dynamic Time">TDB</abbr>. 1046bc421551SDag-Erling Smørgrav<li>The <a href="https://www.iau.org"><abbr 1047bc421551SDag-Erling Smørgravtitle="International Astronomical Union">IAU</abbr></a>'s <a 1048bc421551SDag-Erling Smørgravhref="https://www.iausofa.org"><abbr 1049bc421551SDag-Erling Smørgravtitle="Standards Of Fundamental Astronomy">SOFA</abbr></a> 1050bc421551SDag-Erling Smørgravcollection contains C and <a 1051bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Fortran">Fortran</a> 1052bc421551SDag-Erling Smørgravcode for converting among time scales like 1053bc421551SDag-Erling Smørgrav<abbr title="International Atomic Time">TAI</abbr>, 1054bc421551SDag-Erling Smørgrav<abbr>TDB</abbr>, <abbr>TDT</abbr> and 1055bc421551SDag-Erling Smørgrav<abbr>UTC</abbr>. It is freely available under the 1056bc421551SDag-Erling Smørgrav<a href="https://www.iausofa.org/tandc.html">SOFA license</a>.</li> 1057bc421551SDag-Erling Smørgrav<li><a 1058bc421551SDag-Erling Smørgravhref="https://www.giss.nasa.gov/tools/mars24/help/notes.html">Mars24 Sunclock 1059bc421551SDag-Erling Smørgrav– Time on Mars</a> describes Airy Mean Time (<abbr>AMT</abbr>) and the 1060bc421551SDag-Erling Smørgravdiverse local time 1061bc421551SDag-Erling Smørgravscales used by each landed mission on Mars.</li> 1062bc421551SDag-Erling Smørgrav<li><a href="http://leapsecond.com">LeapSecond.com</a> is 1063bc421551SDag-Erling Smørgravdedicated not only to leap seconds but to precise time and frequency 1064bc421551SDag-Erling Smørgravin general. It covers the state of the art in amateur timekeeping, and 1065bc421551SDag-Erling Smørgravhow the art has progressed over the past few decades.</li> 1066bc421551SDag-Erling Smørgrav<li>The rules for leap seconds are specified in Annex 1 (Time scales) of <a 1067bc421551SDag-Erling Smørgravhref="https://www.itu.int/rec/R-REC-TF.460-6-200202-I/">Standard-frequency 1068bc421551SDag-Erling Smørgravand time-signal emissions</a>, International Telecommunication Union – 1069bc421551SDag-Erling SmørgravRadiocommunication Sector (ITU-R) Recommendation TF.460-6 (02/2002).</li> 1070bc421551SDag-Erling Smørgrav<li><a 1071bc421551SDag-Erling Smørgravhref="https://www.iers.org/IERS/EN/Publications/Bulletins/bulletins.html"><abbr 1072bc421551SDag-Erling Smørgravtitle="International Earth Rotation and Reference Systems Service">IERS</abbr> 1073bc421551SDag-Erling SmørgravBulletins</a> contains official publications of the International 1074bc421551SDag-Erling SmørgravEarth Rotation and Reference Systems Service, which decides when leap 1075bc421551SDag-Erling Smørgravseconds occur. The <code><abbr>tz</abbr></code> code and data support leap seconds 1076bc421551SDag-Erling Smørgravvia an optional "<code>right</code>" configuration where a computer's internal 1077bc421551SDag-Erling Smørgrav<code>time_t</code> integer clock counts every <abbr>TAI</abbr> second, 1078bc421551SDag-Erling Smørgravas opposed to the default "<code>posix</code>" configuration 1079bc421551SDag-Erling Smørgravwhere the internal clock ignores leap seconds. 1080bc421551SDag-Erling SmørgravThe two configurations agree for timestamps starting with 1972-01-01 00:00:00 1081bc421551SDag-Erling Smørgrav<abbr>UTC</abbr> (<code>time_t</code> 63 072 000) and diverge for 1082bc421551SDag-Erling Smørgravtimestamps starting with <code>time_t</code> 78 796 800, 1083bc421551SDag-Erling Smørgravwhich corresponds to the first leap second 1084bc421551SDag-Erling Smørgrav1972-06-30 23:59:60 <abbr>UTC</abbr> in the "<code>right</code>" configuration, 1085bc421551SDag-Erling Smørgravand to 1086bc421551SDag-Erling Smørgrav1972-07-01 00:00:00 <abbr>UTC</abbr> in the "<code>posix</code>" configuration. 1087bc421551SDag-Erling SmørgravIn practice the two configurations also agree for timestamps before 1088bc421551SDag-Erling Smørgrav1972 even though the historical situation is messy, partly because 1089bc421551SDag-Erling Smørgravneither <abbr>UTC</abbr> nor <abbr>TAI</abbr> 1090*75411d15SDag-Erling Smørgravis well-defined for sufficiently old timestamps.</li> 1091bc421551SDag-Erling Smørgrav<li><a href="https://developers.google.com/time/smear">Leap Smear</a> 1092bc421551SDag-Erling Smørgravdiscusses how to gradually adjust <abbr>POSIX</abbr> clocks near a 1093bc421551SDag-Erling Smørgravleap second so that they disagree with <abbr>UTC</abbr> by at most a 1094bc421551SDag-Erling Smørgravhalf second, even though every <abbr>POSIX</abbr> minute has exactly 1095bc421551SDag-Erling Smørgravsixty seconds. This approach works with the default <code><abbr>tz</abbr></code> 1096bc421551SDag-Erling Smørgrav"<code>posix</code>" configuration, is <a 1097bc421551SDag-Erling Smørgravhref="http://bk1.ntp.org/ntp-stable/README.leapsmear">supported</a> by 1098bc421551SDag-Erling Smørgravthe <abbr>NTP</abbr> reference implementation, <a 1099bc421551SDag-Erling Smørgravhref="https://github.com/google/unsmear">supports</a> conversion between 1100bc421551SDag-Erling Smørgrav<abbr>UTC</abbr> and smeared <abbr>POSIX</abbr> timestamps, and is used by major 1101bc421551SDag-Erling Smørgravcloud service providers. However, according to 1102bc421551SDag-Erling Smørgrav<a href="https://datatracker.ietf.org/doc/html/rfc8633#section-3.7.1">§3.7.1 of 1103bc421551SDag-Erling SmørgravNetwork Time Protocol Best Current Practices</a> 1104bc421551SDag-Erling Smørgrav(Internet <abbr>RFC</abbr> 8633), leap smearing is not suitable for 1105bc421551SDag-Erling Smørgravapplications requiring accurate <abbr>UTC</abbr> or civil time, 1106bc421551SDag-Erling Smørgravand is intended for use only in single, well-controlled environments.</li> 1107bc421551SDag-Erling Smørgrav<li>The <a 1108bc421551SDag-Erling Smørgravhref="https://pairlist6.pair.net/mailman/listinfo/leapsecs">Leap 1109bc421551SDag-Erling SmørgravSecond Discussion List</a> covers <a 1110bc421551SDag-Erling Smørgravhref="https://www2.unb.ca/gge/Resources/gpsworld.november99.pdf">McCarthy 1111bc421551SDag-Erling Smørgravand Klepczynski's 1999 proposal to discontinue leap seconds</a>, 1112bc421551SDag-Erling Smørgravdiscussed further in 1113bc421551SDag-Erling Smørgrav<a href="https://www.cl.cam.ac.uk/~mgk25/time/metrologia-leapsecond.pdf">The 1114bc421551SDag-Erling Smørgravleap second: its history and possible future</a>. 1115bc421551SDag-Erling Smørgrav<a href="https://www.ucolick.org/~sla/leapsecs/"><abbr>UTC</abbr> 1116bc421551SDag-Erling Smørgravmight be redefined 1117bc421551SDag-Erling Smørgravwithout Leap Seconds</a> gives pointers on this 1118*75411d15SDag-Erling Smørgravcontentious issue. 1119*75411d15SDag-Erling SmørgravThe General Conference on Weights and Measures 1120*75411d15SDag-Erling Smørgrav<a href="https://www.bipm.org/en/cgpm-2022/resolution-4">voted in 2022</a> 1121*75411d15SDag-Erling Smørgravto discontinue the use of leap seconds by 2035, replacing them with an 1122*75411d15SDag-Erling Smørgravas-yet-undetermined scheme some time after the year 2135. 1123*75411d15SDag-Erling Smørgrav</li> 1124bc421551SDag-Erling Smørgrav</ul> 1125bc421551SDag-Erling Smørgrav</section> 1126bc421551SDag-Erling Smørgrav 1127bc421551SDag-Erling Smørgrav<section> 1128bc421551SDag-Erling Smørgrav<h2 id="notation">Time notation</h2> 1129bc421551SDag-Erling Smørgrav<ul> 1130bc421551SDag-Erling Smørgrav<li>The <a id="CLDR" href="https://cldr.unicode.org">Unicode Common Locale Data 1131bc421551SDag-Erling SmørgravRepository (<abbr>CLDR</abbr>) Project</a> has localizations for time 1132bc421551SDag-Erling Smørgravzone names, abbreviations, identifiers, and formats. For example, it 1133bc421551SDag-Erling Smørgravcontains French translations for "Eastern European Summer Time", 1134bc421551SDag-Erling Smørgrav"<abbr title="Eastern European Summer Time">EEST</abbr>", and 1135bc421551SDag-Erling Smørgrav"Bucharest". Its 1136bc421551SDag-Erling Smørgrav<a href="https://unicode.org/cldr/charts/latest/by_type/">by-type 1137bc421551SDag-Erling Smørgravcharts</a> show these values for many locales. Data values are available in 1138bc421551SDag-Erling Smørgravboth <abbr title="Locale Data Markup Language">LDML</abbr> 1139bc421551SDag-Erling Smørgrav(an <abbr>XML</abbr> format) and <abbr>JSON</abbr>. 1140bc421551SDag-Erling Smørgrav<li> 1141bc421551SDag-Erling Smørgrav<a href="https://www.cl.cam.ac.uk/~mgk25/iso-time.html">A summary of 1142bc421551SDag-Erling Smørgravthe international standard date and time notation</a> covers 1143bc421551SDag-Erling Smørgrav<a 1144bc421551SDag-Erling Smørgravhref="https://www.iso.org/standard/70907.html"><em><abbr 1145bc421551SDag-Erling Smørgravtitle="International Organization for Standardization">ISO</abbr> 1146bc421551SDag-Erling Smørgrav8601-1:2019 – Date and time – Representations for information 1147bc421551SDag-Erling Smørgravinterchange – Part 1: Basic rules</em></a>.</li> 1148bc421551SDag-Erling Smørgrav<li> 1149bc421551SDag-Erling Smørgrav<a href="https://www.w3.org/TR/xmlschema/#dateTime"><abbr>XML</abbr> 1150bc421551SDag-Erling SmørgravSchema: Datatypes – dateTime</a> specifies a format inspired by 1151bc421551SDag-Erling Smørgrav<abbr>ISO</abbr> 8601 that is in common use in <abbr>XML</abbr> data.</li> 1152bc421551SDag-Erling Smørgrav<li><a href="https://datatracker.ietf.org/doc/html/rfc5322#section-3.3">§3.3 of 1153bc421551SDag-Erling SmørgravInternet Message Format</a> (Internet <abbr>RFC</abbr> 5322) 1154bc421551SDag-Erling Smørgravspecifies the time notation used in email and <a 1155bc421551SDag-Erling Smørgravhref="https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol"><abbr>HTTP</abbr></a> 1156bc421551SDag-Erling Smørgravheaders.</li> 1157bc421551SDag-Erling Smørgrav<li> 1158bc421551SDag-Erling Smørgrav<a href="https://datatracker.ietf.org/doc/html/rfc3339">Date and Time 1159bc421551SDag-Erling Smørgravon the Internet: Timestamps</a> (Internet <abbr>RFC</abbr> 3339) 1160bc421551SDag-Erling Smørgravspecifies an <abbr>ISO</abbr> 8601 1161bc421551SDag-Erling Smørgravprofile for use in new Internet 1162bc421551SDag-Erling Smørgravprotocols.</li> 1163bc421551SDag-Erling Smørgrav<li> 1164bc421551SDag-Erling Smørgrav<a href="https://web.archive.org/web/20190130042457/https://www.hackcraft.net/web/datetime/">Date & Time 1165bc421551SDag-Erling SmørgravFormats on the Web</a> surveys web- and Internet-oriented date and time 1166bc421551SDag-Erling Smørgravformats.</li> 1167bc421551SDag-Erling Smørgrav<li>Alphabetic time zone abbreviations should not be used as unique 1168bc421551SDag-Erling Smørgravidentifiers for <abbr>UT</abbr> offsets as they are ambiguous in 1169bc421551SDag-Erling Smørgravpractice. For example, in English-speaking North America 1170bc421551SDag-Erling Smørgrav"<abbr>CST</abbr>" denotes 6 hours behind <abbr>UT</abbr>, 1171bc421551SDag-Erling Smørgravbut in China it denotes 8 hours ahead of <abbr>UT</abbr>, 1172bc421551SDag-Erling Smørgravand French-speaking North Americans prefer 1173bc421551SDag-Erling Smørgrav"<abbr title="Heure Normale du Centre">HNC</abbr>" to 1174bc421551SDag-Erling Smørgrav"<abbr>CST</abbr>". The <code><abbr>tz</abbr></code> 1175bc421551SDag-Erling Smørgravdatabase contains English abbreviations for many timestamps; 1176bc421551SDag-Erling Smørgravunfortunately some of these abbreviations were merely the database maintainers' 1177bc421551SDag-Erling Smørgravinventions, and these have been removed when possible.</li> 1178bc421551SDag-Erling Smørgrav<li>Numeric time zone abbreviations typically count hours east of 1179bc421551SDag-Erling Smørgrav<abbr>UT</abbr>, e.g., +09 for Japan and 1180bc421551SDag-Erling Smørgrav−10 for Hawaii. However, the <abbr>POSIX</abbr> 1181bc421551SDag-Erling Smørgrav<code><abbr>TZ</abbr></code> environment variable uses the opposite convention. 1182bc421551SDag-Erling SmørgravFor example, one might use <code><abbr>TZ</abbr>="<abbr 1183bc421551SDag-Erling Smørgravtitle="Japan Standard Time">JST</abbr>-9"</code> and 1184bc421551SDag-Erling Smørgrav<code><abbr>TZ</abbr>="<abbr title="Hawaii Standard Time">HST</abbr>10"</code> 1185bc421551SDag-Erling Smørgravfor Japan and Hawaii, respectively. If the 1186bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> database is available, it is usually better to use 1187bc421551SDag-Erling Smørgravsettings like <code><abbr>TZ</abbr>="Asia/Tokyo"</code> and 1188bc421551SDag-Erling Smørgrav<code><abbr>TZ</abbr>="Pacific/Honolulu"</code> instead, as this should avoid 1189bc421551SDag-Erling Smørgravconfusion, handle old timestamps better, and insulate you better from 1190bc421551SDag-Erling Smørgravany future changes to the rules. One should never set 1191bc421551SDag-Erling Smørgrav<abbr>POSIX</abbr> <code><abbr>TZ</abbr></code> to a value like 1192bc421551SDag-Erling Smørgrav<code>"GMT-9"</code>, though, since this would incorrectly imply that 1193bc421551SDag-Erling Smørgravlocal time is nine hours ahead of <abbr>UT</abbr> and the time zone 1194bc421551SDag-Erling Smørgravis called "<abbr>GMT</abbr>".</li> 1195bc421551SDag-Erling Smørgrav</ul> 1196bc421551SDag-Erling Smørgrav</section> 1197bc421551SDag-Erling Smørgrav 1198bc421551SDag-Erling Smørgrav<section> 1199bc421551SDag-Erling Smørgrav<h2 id="see-also">See also</h2> 1200bc421551SDag-Erling Smørgrav<ul> 1201bc421551SDag-Erling Smørgrav<li><a href="theory.html">Theory and pragmatics of the 1202bc421551SDag-Erling Smørgrav<code><abbr>tz</abbr></code> code and data</a></li> 1203bc421551SDag-Erling Smørgrav<li><a href="tz-art.html">Time and the Arts</a></li> 1204bc421551SDag-Erling Smørgrav</ul> 1205bc421551SDag-Erling Smørgrav</section> 1206bc421551SDag-Erling Smørgrav 1207bc421551SDag-Erling Smørgrav<footer> 1208bc421551SDag-Erling Smørgrav<hr> 1209bc421551SDag-Erling SmørgravThis web page is in the public domain, so clarified as of 1210bc421551SDag-Erling Smørgrav2009-05-17 by Arthur David Olson. 1211bc421551SDag-Erling Smørgrav<br> 1212bc421551SDag-Erling SmørgravPlease send corrections to this web page to the 1213bc421551SDag-Erling Smørgrav<a href="mailto:tz@iana.org">time zone mailing list</a>. 1214bc421551SDag-Erling Smørgrav</footer> 1215bc421551SDag-Erling Smørgrav</body> 1216bc421551SDag-Erling Smørgrav</html> 1217