Path to this page:
./
time/py-pendulum,
Human-friendly date and time handling
Branch: pkgsrc-2019Q2,
Version: 2.0.4,
Package name: py37-pendulum-2.0.4,
Maintainer: pkgsrc-usersNative 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:[
lang/python37] [
time/py-dateutil] [
time/py-tzdata]
Required to build:[
pkgtools/cwrappers]
Master sites:
SHA1: eaee945d717191eeee17a20fb21f8e5069e84d77
RMD160: 7acef3b49fcf7a7ebbcf0c1dc2d9c8d7521683ca
Filesize: 73.97 KB
Version history: (Expand)
- (2019-07-04) Package added to pkgsrc.se, version py37-pendulum-2.0.4 (created)