Mp-yearmonth

Latest version: v0.5.0

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.0

------

- Added ``YearMonth.first_day`` and ``YearMonth.last_day`` properties to get the first and last day of the month.

0.4.0

------

- ``YearMonth.current()`` now accepts a ``tz`` argument to specify the timezone.
- Made ``YearMonth`` instances immutable.

0.3.1

------

- Use ``__slots__`` to optimize memory usage.

0.3.0

------

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

0.2.0

------

- 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.

0.1.0

------

- Initial release.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.