pygeodes.utils.datetime_utils.complete_datetime_from_str#

pygeodes.utils.datetime_utils.complete_datetime_from_str(string: str) str[source]#

Returns a valid string for format pygeodes.utils.consts.DATETIME_FORMAT from a non-valid string (under some defined formats)

Parameters:
stringstr

a non valid datetime string

Returns:
str

a valid datetime string

Raises:
Exception

Examples

complete_datetime_from_str("2023-09-23") # this returns "2023-09-23T00:00:00.0Z"