Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Dayjs | 44,173 | 5,371 | 11,414 | 3 days ago | 122 | July 01, 2023 | 808 | mit | JavaScript | |
⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API | ||||||||||
Date Fns | 32,359 | 68,280 | 11,158 | 3 days ago | 180 | April 30, 2023 | 628 | mit | TypeScript | |
⏳ Modern JavaScript date utility library ⌛️ | ||||||||||
Awesome Falsehood | 22,086 | 14 days ago | 4 | cc0-1.0 | ||||||
😱 Falsehoods Programmers Believe in | ||||||||||
Luxon | 14,260 | 1,936 | 3,121 | 14 days ago | 139 | March 04, 2023 | 144 | mit | JavaScript | |
⏱ A library for working with dates and times in JS | ||||||||||
Arrow | 8,372 | 3,711 | 1,031 | a day ago | 63 | September 03, 2022 | 97 | apache-2.0 | Python | |
🏹 Better dates & times for Python | ||||||||||
Pickadate.js | 7,727 | 172 | 38 | 3 months ago | 18 | May 31, 2019 | 311 | mit | JavaScript | |
The mobile-friendly, responsive, and lightweight jQuery date & time input picker. | ||||||||||
Datetools | 7,089 | 663 | 3 years ago | 13 | September 28, 2017 | 118 | mit | Objective-C | ||
Dates and times made easy in iOS | ||||||||||
Pendulum | 5,711 | 540 | 662 | a day ago | 53 | November 23, 2022 | 229 | mit | Python | |
Python datetimes made easy | ||||||||||
Joda Time | 4,936 | 31,269 | 5,883 | 14 days ago | 58 | March 30, 2023 | 44 | apache-2.0 | Java | |
Joda-Time is the widely used replacement for the Java date and time classes prior to Java SE 8. | ||||||||||
Carbon | 3,479 | 36 | 6 days ago | 112 | November 06, 2022 | 3 | mit | Go | ||
A simple, semantic and developer-friendly golang package for datetime |
Arrow is a Python library that offers a sensible and human-friendly approach to creating, manipulating, formatting and converting dates, times and timestamps. It implements and updates the datetime type, plugging gaps in functionality and providing an intelligent module API that supports many common creation scenarios. Simply put, it helps you work with dates and times with fewer imports and a lot less code.
Arrow is named after the arrow of time and is heavily inspired by moment.js and requests.
Python's standard library and some other low-level modules have near-complete date, time and timezone functionality, but don't work very well from a usability perspective:
shift
method with support for relative offsets, including weeksdateutil
, pytz
, and ZoneInfo
tzinfo objectsTo install Arrow, use pip or pipenv:
$ pip install -U arrow
>>> import arrow
>>> arrow.get('2013-05-11T21:23:58.970460+07:00')
<Arrow [2013-05-11T21:23:58.970460+07:00]>
>>> utc = arrow.utcnow()
>>> utc
<Arrow [2013-05-11T21:23:58.970460+00:00]>
>>> utc = utc.shift(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]>
>>> local.timestamp()
1368303838.970460
>>> local.format()
'2013-05-11 13:23:58 -07:00'
>>> local.format('YYYY-MM-DD HH:mm:ss ZZ')
'2013-05-11 13:23:58 -07:00'
>>> local.humanize()
'an hour ago'
>>> local.humanize(locale='ko-kr')
' '
For full documentation, please visit arrow.readthedocs.io.
Contributions are welcome for both code and localizations (adding and updating locales). Begin by gaining familiarity with the Arrow library and its features. Then, jump into contributing:
tox && tox -e lint,docs
(if you have tox installed) OR make build39 && make test && make lint
(if you do not have Python 3.9 installed, replace build39
with the latest Python version on your system).If you have any questions along the way, feel free to ask them here.
Open Collective is an online funding platform that provides tools to raise money and share your finances with full transparency. It is the platform of choice for individuals and companies to make one-time or recurring donations directly to the project. If you are interested in making a financial contribution, please visit the Arrow collective.