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)
>>>, 8, 4)
>>> list(aug_4.dates(range(2013, 2016)))
[, 8, 4),, 8, 4),, 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.

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 hashes)

Uploaded source

Built Distribution

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

Uploaded 3 5

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page