Skip to main content

Produce a sequence of dates. It's like the builtin range function but for datetime.date objects

Project description

In Python I can produce a range of numbers like this.

range(1, 10)

date_range produces a range of dates like this.

date_range(datetime.date(1990, 3, 30), datetime.date.today())

Install from PyPI.

pip install date_range

Run tests like so.

python test.py

It currently supports only full dates, just as range only supports integers, It would be cool to add support for producing datetimes spaced by something smaller, like half-days; this would be akin to adding support for floats in range.

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

date_range-0.0.1.tar.gz (1.3 kB view hashes)

Uploaded Source

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