百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

tz

> 编程语言
开源

时区数据库和代码

1.8K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

时区数据库和代码

README for the tz distribution

“Where do I set the hands of the clock?” – Les Tremayne as The King “Oh that – you can set them any place you want.” – Frank Baxter as The Scientist (from the Bell System film “About Time”)

The Time Zone Database (called tz, tzdb or zoneinfo) contains code and data that represent the history of local time for many representative locations around the globe. It is updated periodically to reflect changes made by political bodies to time zone boundaries, UTC offsets, and daylight-saving rules.

See https://data.iana.org/time-zones/tz-link.html or the file tz-link.html for how to acquire the code and data.

Once acquired, read the leading comments in the file ‘Makefile’ and make any changes needed to make things right for your system, especially when using a platform other than current GNU/Linux.

Then run the following commands, substituting your desired installation directory for ‘$HOME/tzdir’:

make TOPDIR="$HOME/tzdir" install
"$HOME/tzdir/usr/bin/zdump" -v America/Los_Angeles

See the file tz-how-to.html for examples of how to read the data files.

This database of historical local time information has several goals:

  • Provide a compendium of data about the history of civil time that is useful even if not 100% accurate.

  • Give an idea of the variety of local time rules that have existed in the past and thus may be expected in the future.

  • Test the generality of the local time rule description system.

The information in the time zone data files is by no means authoritative; fixes and enhancements are welcome. Please see the file CONTRIBUTING for details.

Thanks to these Time Zone Caballeros who’ve made major contributions to the time conversion package: Keith Bostic; Bob Devine; Paul Eggert; Robert Elz; Guy Harris; Mark Horton; John Mackin; and Bradley White. Thanks also to Michael Bloom, Art Neilson, Stephen Prince, John Sovereign, and Frank Wales for testing work, and to Gwillim Law for checking local mean time data. Thanks in particular to Arthur David Olson, the project’s founder and first maintainer, to whom the time zone community owes the greatest debt of all. None of them are responsible for remaining errors.


This file is in the public domain, so clarified as of 2009-05-17 by Arthur David Olson. The other files in this distribution are either public domain or BSD licensed; see the file LICENSE for details.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Provide a compendium of data about the history of civil time that
  • •Give an idea of the variety of local time rules that have existed
  • •Test the generality of the local time rule description system.

> 标签

C

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言