Skip to main content

Date without year

Project description

PyPI Read the Docs Build Status Coverage Status

This package provides the MonthDay value type for dealing dates without year. It is useful for dealing with birthdays, or anniversaries. Works on Python 2.6, 2.7, 3.2–3.5, PyPy, PyPy3.

>>> from monthday import *
>>> aug_4 = MonthDay(8, 4)
>>> aug_4
monthday.MonthDay(8, 4)
>>> aug_4.date(1988)
datetime.date(1988, 8, 4)
>>> list(aug_4.dates(range(2013, 2016)))
[datetime.date(2013, 8, 4),
 datetime.date(2014, 8, 4),
 datetime.date(2015, 8, 4)]
>>> from datetime import date
>>> MonthDay.from_date(date(2015, 12, 25))
monthday.MonthDay(12, 25)

It’s available on PyPI:

$ pip install monthday

Written by Hong Minhee, and distributed under LGPLv3 or later. Find the source code from the GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monthday-0.9.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

monthday-0.9.0-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file monthday-0.9.0.tar.gz.

File metadata

  • Download URL: monthday-0.9.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for monthday-0.9.0.tar.gz
Algorithm Hash digest
SHA256 5a48d197fc1fdd5dd6ae7dc3e3074aae7cf50866973388677f66d17137cfb814
MD5 cdafba30913963bfd1f3a20af26717ba
BLAKE2b-256 ef440c1a0dedd63727a3041ab6b305a9ac6a8f197bc9477adf9ad5136e82b0f2

See more details on using hashes here.

Provenance

File details

Details for the file monthday-0.9.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for monthday-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3bd1cec9936efbc379ad5aa8eb67d64b663c202f8e650b0ea643f39475255422
MD5 1d6ebef1a018c354c62ec946e854ce15
BLAKE2b-256 037387040492bcff5956b195ecff04c81201ceccf9138daae66cec662f3bedf2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page