Skip to content

mabel.utils.dates

Justin Joyce edited this page Oct 24, 2021 · 2 revisions

extract_date (value)

parse_delta (delta)

Parses a human readable timedelta (3d5h19m) into a datetime.timedelta.

Delta includes: * Xd days * Xh hours * Xm minutes * Xs seconds

Values can be negative following timedelta's rules. Eg: -5h-30m

parse_iso (value)

date_range (start_date, end_date)

An interator over a range of dates


This file has been automatically generated, it is not the truth. If in doubt the code will tell you unambiguously what it does.

Clone this wiki locally