Period Iterator
Project description
Period Iterator
Period Iterator is a library easing you to iterate through given period.
Usage
from period_iterator import period_iterator
period = period_iterator('2020-02-01,2020-02-03', 'Asia/Bangkok')
while True:
print(period.cursor.begin()) # Begin of day
print(period.cursor.end()) # End of day
if not period.next():
break
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
period-iterator-1.2.3.tar.gz
(4.5 kB
view hashes)