./time/py-pendulum, Human-friendly date and time handling

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.2.5, Package name: py27-pendulum-1.2.5, Maintainer: pkgsrc-users

Native datetime instances are enough for basic cases but when you face
more complex use-cases they often show limitations and are not so
intuitive to work with. Pendulum provides a cleaner and more easy to use
API while still relying on the standard library. So it’s still datetime
but better.

Unlike other datetime libraries for Python, Pendulum is a drop-in
replacement for the standard datetime class (it inherits from it), so,
basically, you can replace all your datetime instances by Pendulum
instances in you code (exceptions exist for libraries that check the type
of the objects by using the type function like sqlite3 or PyMySQL for
instance).

It also removes the notion of naive datetimes: each Pendulum instance is
timezone-aware and by default in UTC for ease of use.

Pendulum also improves the standard timedelta class by providing more
intuitive methods and properties.


Required to run:
[devel/py-setuptools] [time/py-dateutil] [lang/python27] [time/py-tzlocal] [time/py-tzdata]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 0646251d5e9655170ad2572ef0b5da1a354dee84
RMD160: 7aa68905038ed352b97473286d8540958cb22a2c
Filesize: 68.299 KB

Version history: (Expand)


CVS history: (Expand)


   2017-09-29 23:18:49 by Joerg Sonnenberger | Files touched by this commit (4)
Log message:
Add py-pendulum-1.2.5:

Native datetime instances are enough for basic cases but when you face
more complex use-cases they often show limitations and are not so
intuitive to work with. Pendulum provides a cleaner and more easy to use
API while still relying on the standard library. So it’s still datetime
but better.

Unlike other datetime libraries for Python, Pendulum is a drop-in
replacement for the standard datetime class (it inherits from it), so,
basically, you can replace all your datetime instances by Pendulum
instances in you code (exceptions exist for libraries that check the type
of the objects by using the type function like sqlite3 or PyMySQL for
instance).

It also removes the notion of naive datetimes: each Pendulum instance is
timezone-aware and by default in UTC for ease of use.

Pendulum also improves the standard timedelta class by providing more
intuitive methods and properties.