Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Files for monthday, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size monthday-0.9.0-py2.py3-none-any.whl (5.6 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size monthday-0.9.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page