NOTICE: This package has been removed from pkgsrc

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

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 2.1.0nb1, Package name: py310-pendulum-2.1.0nb1, 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:
[time/py-dateutil] [time/py-tzdata] [lang/python310]

Master sites:

Filesize: 78.706 KB

Version history: (Expand)


CVS history: (Expand)


   2023-08-28 11:52:52 by Adam Ciarcinski | Files touched by this commit (4) | Package removed
Log message:
py-pendulum: removed; not updated upstream since 24 Jul 2020; unclog py-pandas update
   2023-03-29 11:34:15 by Thomas Klausner | Files touched by this commit (96)
Log message:
*: use PYTHON_VERSION instead of _PYTHON_VERSION
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 13:24:47 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 17:04:23 by Nia Alarie | Files touched by this commit (263)
Log message:
time: Remove SHA1 hashes for distfiles
   2020-03-21 13:54:50 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pendulum: updated to 2.1.0

2.1.0:

Added
Added better typing and PEP-561 compliance
Added the is_anniversary() method as an alias of is_birthday()

Changed
Dropped support for Python 3.4.
is_utc() will now return True for any datetime with an offset of 0, similar to \ 
the behavior in the 1.* versions
Duration.in_words() will now return 0 milliseconds for empty durations.

Fixed
Fixed various issues with timezone transitions for some edge cases
Fixed out of bound detection for nth_of("month")
Fixed an error where extra text was accepted in from_format()
Fixed a recursion error when adding time to a DateTime with a fixed timezone
Fixed errors where Period instances were not properly compared to other classes, \ 
especially timedelta instances
Fixed deprecation warnings due to internal regexps
Fixed an error where the test() helper would not unset the test instance when an \ 
exception was raised
Fixed an error where the week_of_month attribute was not returning the correct value
Fixed an error in the way the Z ISO-8601 UTC designator was not parsed as UTC

Locales
Added the nl locale.
Added the it locale.
Added the id locale.
Added the nb locale.
Added the nn locale.
   2019-07-18 13:29:30 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pendulum: updated to 2.0.5

2.0.5:

Fixed
* Fixed ISO week dates not being parsed properly in from_format().
* Fixed loading of some timezones with empty posix spec.
* Fixed deprecation warnings.

Locales
* Added RU locale.
   2019-05-02 11:16:48 by Adam Ciarcinski | Files touched by this commit (10)
Log message:
Forget about Python 3.4