下拉刷新
Repository Details
Shared bynavbar_avatar
repo_avatar
HelloGitHub Rating
0 ratings
还在为处理时间、时区、转化、夏令时等问题而头疼吗?这个 Python 的第三方时间库
FreeApache-2.0
Claim
Collect
Share
8.9k
Stars
No
Chinese
Python
Language
Yes
Active
259
Contributors
107
Issues
Yes
Organization
1.3.0
Latest
692
Forks
Apache-2.0
License
More
还在为处理时间、时区、转化、夏令时等问题而头疼吗?这个 Python 的第三方时间库。提供了更便捷的方式来创建、操作和格式化时间和日期,用更少的代码来处理时间和日期。示例代码: ``` >>> import arrow >>> utc = arrow.utcnow() >>> utc <Arrow [2013-05-11T21:23:58.970460+00:00]> >>> utc = utc.replace(hours=-1) >>> utc <Arrow [2013-05-11T20:23:58.970460+00:00]> >>> local = utc.to('US/Pacific') >>> local <Arrow [2013-05-11T13:23:58.970460-07:00]> >>> arrow.get('2013-05-11T21:23:58.970460+00:00') <Arrow [2013-05-11T21:23:58.970460+00:00]> >>> local.timestamp 1368303838 ```
Included in:
Vol.39

Comments

Rating:
No comments yet