imod.util.to_datetime#

imod.util.to_datetime(s: str) datetime[source]#

Convert string to datetime. Part of the public API for backwards compatibility reasons.

Fast performance is important, as this function is used to parse IDF names, so it being called 100,000 times is a common usecase. Function stored previously under imod.util.to_datetime.