Period Iterator
Project description
Period Iterator
Period Iterator is a library easing you to iterate through given period.
Usage
from period_iterator.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.4.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for period_iterator-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349d8529d876f4a1a53bd7844c23c39a694149d5a708aca09a9af640667cbefc |
|
MD5 | a897c63c5085780587bd12f16c2e52c5 |
|
BLAKE2b-256 | 0b0a0ef20c519bed10c2398bff09b7464d760ab9a1afa1227898d555eb7616bf |