Pendulum VS DateType

Compare Pendulum vs DateType and see what are their differences.

DateType

A type wrapper for the standard library `datetime` that supplies stricter checks, such as making 'datetime' not substitutable for 'date', and separating out Naive and Aware datetimes into separate, mutually-incompatible types. (by glyph)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Pendulum DateType
11 2
6,066 63
- -
7.3 7.7
about 1 month ago 2 months ago
Python Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Pendulum

Posts with mentions or reviews of Pendulum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-19.

DateType

Posts with mentions or reviews of DateType. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-19.
  • It's Time for a Change: Datetime.utcnow() Is Now Deprecated
    5 projects | news.ycombinator.com | 19 Nov 2023
    It's funny you should say this.

    Reading this article prompted me to future-proof a program I maintain for fun that deals with time; it had one use of utcnow, which I fixed.

    And then I tripped over a runtime type problem in an unrelated area of the code, despite the code being green under "mypy --strict". (and "100% coverage" from tests, except this particular exception only occured in a "# pragma: no-cover" codepath so it wasn't actually covered)

    It turns out that because of some core decisions about how datetime objects work, `datetime.date.today() < datetime.datetime.now()` type-checks but gives a TypeError at runtime. Oops. (cause discussed at length in https://github.com/python/mypy/issues/9015 but without action for 3 years)

    One solution is apparently to use `datetype` for type annotations (while continuing to use `datetime` objects at runtime): https://github.com/glyph/DateType

  • DateType: Distinguish aware and native datetimes at the type level
    1 project | news.ycombinator.com | 18 Nov 2023

What are some alternatives?

When comparing Pendulum and DateType you can also consider the following projects:

arrow - 🏹 Better dates & times for Python

mypy - Optional static typing for Python

pytz - pytz Python historical timezone library and database

concise-encoding - The secure data format for a modern world

dateutil - Useful extensions to the standard Python datetime features

Maya - Datetimes for Humans™

delorean - Delorean: Time Travel Made Easy

when.py

PyTime - PyTime is an easy-use Python module which aims to operate date/time/datetime by string.

udatetime - Fast RFC3339 compliant Python date-time library

moment - A Python library for dealing with dates

Chronyk - A Python 3 library for parsing human-written times and dates