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

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


Branch: CURRENT, Version: 1.4.1, Package name: py27-pendulum-1.4.1, 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:
[devel/py-test] [pkgtools/cwrappers]

Master sites:

SHA1: 3beceb73dc2a75643753197de9f250a25e7040d5
RMD160: 92616a811e8c2b64dc3093a2e80f9c28988a9b08
Filesize: 73.262 KB

Version history: (Expand)


CVS history: (Expand)


   2018-02-08 17:42:40 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pendulum: updated to 1.4.1

1.4.1:
Fixed an error when comparing a Period to a timedelta in PyPy.
Fixed an offset error for datetimes between the before last and last transition.
Fixed unpickling with undefined / empty timezone name.
   2018-01-24 12:52:29 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-pendulum: updated to 1.4.0

1.4.0:
Changed:
format(), diff_for_humans(), in_words() and to_xxx_string() methods now return \ 
unicode strings for Python 2.7.
Improved performance of now() and utcnow().

Fixed
Fixed from_format() raising an error with the alternative formatter.
   2017-11-17 12:18:50 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pendulum: updated to 1.3.2

1.3.2
Fixed instance() behaviour with pytz offsets.
Fixed deepcopy / pickle compatibility for TimezoneInfo.
   2017-10-28 11:06:26 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pendulum: updated to 1.3.1

1.3.1:
Fixed inaccuracy of in_days() method on DST transitions.
Fixed seconds inaccuracy for past datetimes.

1.3.0:
Added support for the alternative formatter's tokens in from_format().
Added a timezones module attribute to expose available timezones.
Added the exact keyword to parse() which behaves exactly like strict.
Dropped support for Python 3.2 and 3.3.
The classic formatter in from_format() is now deprecated.
Fixed th locale.
   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.