tutil.dateutil module

tutil.dateutil

  • DateRangeIterator

copyright: (c) 2020 tuyy license: MIT, see LICENSE for more details.

class tutil.dateutil.DateRangeIterator(start_date, end_date, day_step=1)

Bases: object

start_date 부터 end_date 까지 day 단위로 day_step 씩 순회하는 Iterator

property end_date

입력으로 받은 end_date를 리턴

property start_date

입력으로 받은 start_date를 리턴

class tutil.dateutil.DateRangeSequence(start_date, end_date, day_step=1)

Bases: object

start_date 부터 end_date 까지 day 단위로 day_step 씩 순회하는 Sequence

property end_date

입력으로 받은 end_date를 리턴

property start_date

입력으로 받은 start_date를 리턴