All notable changes to this project will be documented in this file.
- Added
YearMonth.first_day
andYearMonth.last_day
properties to get the first and last day of the month.
YearMonth.current()
now accepts atz
argument to specify the timezone.- Made
YearMonth
instances immutable.
- Use
__slots__
to optimize memory usage.
- Added
YearMonth.distance_to()
method for calculating the distance between twoYearMonth
instances.
- 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.
- Initial release.