Utility Functions
- wtss.utils.to_datetime(timeline, fmt='%Y-%m-%d')
Convert a timeline from a string list to a Python datetime list.
- Parameters:
timeline (list) – a list of strings representing dates.
fmt (str) – the format date (e.g. “%Y-%m-%d”).
- Returns:
a timeline with datetime values.
- Return type:
list (datetime)