Skip to main content

Simple datetime iterator

Project description

datetime-itertool

Build Status codecov Python Version wemake-python-styleguide

Simple datetime iterator

Features

Installation

pip install datetime-itertool

Example

Showcase how your project can be used:

import datetime

from datetime_itertool.datetime_iterator import DateTimeIterator


start = datetime.datetime(2022, 2, 7)
end = datetime.datetime(2022, 2, 10)


for date_time in DateTimeIterator(start, end):
    print(date_time)

# 2022-02-07 00:00:00
# 2022-02-08 00:00:00
# 2022-02-09 00:00:00

License

MIT

Credits

This project was generated with wemake-python-package. Current template version is: 5fe13ee2646d5cf38736bacfa8f9dbbfac092efb. See what is updated since then.

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

datetime-itertool-0.0.1a0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

datetime_itertool-0.0.1a0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

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