Skip to content

Releases: ariebovenberg/whenever

0.6.14

27 Nov 21:02
Compare
Choose a tag to compare

Fixed

  • Ensure docstrings and error messages are consistent in Rust extension as well as the pure-Python version
  • Remove ondocumented properties hour/minute/etc from Instant that were accidentally left in the Rust extension.
  • exact_eq() now also raises TypeError in the pure Python version when comparing different types.

0.6.13

17 Nov 18:50
Compare
Choose a tag to compare

Added

  • Make from_py_datetime() methods of Instant/OffsetDateTime less pedantic. They now accept any aware datetime
  • New Date.today_in_system_tz() convenience method

Fixed

  • Parsing UTC offsets with out-of-range minute/second components (e.g. 06:79) now raises the expected parsing failure.
  • Note in parse_rfc2822() docstring that it doesn't (yet) validate the input, due to limitations in the underlying parser.

0.6.12

08 Nov 21:46
Compare
Choose a tag to compare

Fixed format_rfc3339() docs that incorrectly displayed a T separator. Clarified that T can be added by using the format_common_iso() method instead. (#185)

0.6.11

04 Nov 21:16
Compare
Choose a tag to compare
  • (new) Added YearMonth and MonthDay classes for working with year-month and month-day pairs
  • (fixed) whenever.__version__ is now also accessible when Rust extension is used

0.6.10

31 Oct 19:41
Compare
Choose a tag to compare

Improved

  • Improve method documentation and autocomplete support (#172, #173, #176)

Fixed

  • Remove lingering undocumented offset on Instant
  • Fix incorrect LocalDateTime.difference return type annotation

0.6.9

12 Sep 19:45
Compare
Choose a tag to compare

Clarify DST-related error messages (#169)

0.6.8

05 Sep 08:40
Compare
Choose a tag to compare

Fix object deallocation bug that caused a crash in rare cases (#167)

0.6.7

07 Aug 12:28
Compare
Choose a tag to compare
  • Add Python 3.13 binary wheels, now that its ABI is stable
  • Small improvements to import speed

0.6.6

27 Jul 19:52
Compare
Choose a tag to compare

Fix potential memory leak in .now() if time-machine is used

0.6.5

27 Jul 17:59
Compare
Choose a tag to compare
  • from_timestamp now also accepts floats, to ease porting code from datetime (#159)
  • Fixed incorrect fractional seconds when parsing negative values in from_timestamp methods.
  • Fix some places where ValueError was raised instead of TypeError