Skip to main content

months

https://img.shields.io/travis/kstark/months.svg https://img.shields.io/pypi/v/months.svg Documentation Status

Python library for representing specific months

Features

  • Represent specific months along with their years

  • Convert to and from native datetime and date objects

  • Convenient math operations for adding / subtracting month intervals

  • Convenient operations for displaying months

History

2.0.0 (2019-10-18)

  • Thanks to nolanbconaway for their contributions!

  • New methods to handle relations between months:
    • month.to(other) for generating intervals of months.

    • month.distance(other) for computing distance between months.

  • New methods for month date info
    • month.n_days to return the number of days in the month.

    • month.dates to return a list of all days in the month.

    • month.nth(day) to return a specific day in the month.

  • __int__ and __float__ methods added.
    • Also a month.gregorian_month_number method to compute number of months since year 0.

1.1.0 (2019-10-18)

  • Support up to Python 3.8, drop explicit support for 2.6/3.2/3.3

  • Raise TypeError on invalid addition/subtraction instead of ValueError

1.0.0 (2015-04-13)

  • Documentation added

  • 2.6 support added

  • Tests for bad math added

0.1.0 (2015-04-13)

  • First release on PyPI.

Metadata

Release files for months 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for months 2.0.0
File Size Uploaded Provenance Actions
months-2.0.0.tar.gz 15.7 kB Without provenance Details for months-2.0.0.tar.gz

Release files / months-2.0.0.tar.gz

Download URL months-2.0.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
035c7f92c5a64d575b321df7c0f5647aca9d7bd97188971ae70fc9b4e50715b1
BLAKE2b-256 checksum
How to use checksums
9e89ecc190bfff05b4a3ae12bacfc0ed2b90c6fe17486d4af05b2964eceefd74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1

Security for months 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page