diff --git a/src/traffic/core/time.py b/src/traffic/core/time.py index 39e45385..db7de920 100644 --- a/src/traffic/core/time.py +++ b/src/traffic/core/time.py @@ -1,5 +1,5 @@ import logging -from datetime import datetime +from datetime import datetime, timezone # noqa: F401 from numbers import Real from pyopensky.time import ( @@ -25,9 +25,7 @@ def to_datetime(time: timelike) -> pd.Timestamp: - """Facility to convert anything to a datetime. - - This function will soon be replaced by pd.to_datetime. + """Facility to convert anything to a pd.Timestamp. >>> f"{to_datetime('2017-01-14')}" '2017-01-14 00:00:00+00:00'