Skip to content

Releases: raymondjavaxx/mp-yearmonth

v0.5.0

15 Mar 01:44
99e1b55
Compare
Choose a tag to compare
  • Added YearMonth.first_day and YearMonth.last_day properties to get the first and last day of the month.

v0.4.0

09 Mar 03:22
f046384
Compare
Choose a tag to compare
  • YearMonth.current() now accepts a tz argument to specify the timezone.
  • Made YearMonth instances immutable.

v0.3.1

09 Mar 00:28
237b881
Compare
Choose a tag to compare
  • Use __slots__ to optimize memory usage.

v0.3.0

07 Mar 18:31
1125155
Compare
Choose a tag to compare

Added

  • Added YearMonth.distance_to() method for calculating the distance between two YearMonth instances.

v0.2.0

06 Dec 20:59
bbfb168
Compare
Choose a tag to compare
  • Added support for membership test operators (in and not in) for checking if a date or datetime falls within a YearMonth.
  • Improved YearMonth.parse() performance.

v0.1.0

06 Dec 18:45
Compare
Choose a tag to compare

Initial release!