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

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


Branch: pkgsrc-2017Q4, Version: 1.3.2, Package name: py27-pendulum-1.3.2, 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] [lang/python27] [time/py-tzlocal] [time/py-dateutil]

Required to build:
[devel/py-test] [pkgtools/cwrappers]

Master sites:

SHA1: 742564d123b56c05c80d2cf834c7c5060f4926ee
RMD160: 9c26e749ce38e589e5da778054c38e32a9a24d0b
Filesize: 73.806 KB

Version history: (Expand)