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.2.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for period_iterator-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35f809b8ff586b209ce813394279daf787ed36153de8fb928db12084a17e32dc |
|
MD5 | b3b47566b8ec77b5cff3a9b05dd1b74f |
|
BLAKE2b-256 | 1ce50f3e8e4071caf22b6f4ed16045a7e5c0e02a0cf1fe9086174b6b3ef78144 |