core.dates

core.dates.closest(date, h)[source]

Round a date to the closest hour, by steps of h hours

core.dates.date_range(date_start: date, date_end: date) list[date][source]

Returns a list of days starting from date_start, up to date_end included

core.dates.duration(s)[source]

Returns a timedelta from a string s

core.dates.get_month_range(year: int, month: int)[source]

Returns a couple of date corresponding to start and end of the month

core.dates.now_isofmt()[source]

Returns now in iso format

core.dates.round_date(date, h)[source]

Round a date to the bracketing hours, by steps of h hours

core.dates.time_range(start: datetime, end: datetime, step: timedelta) list[datetime][source]

Returns a list of datetime starting from start, up to end included