datetime-itertool
Simple datetime iterator
Features
- Fully typed with annotations and checked with mypy, PEP561 compatible
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
Credits
This project was generated with wemake-python-package
. Current template version is: 5fe13ee2646d5cf38736bacfa8f9dbbfac092efb. See what is updated since then.