From 2ec35b6c94ad181ec1df817ab16c4a9d57ac21a4 Mon Sep 17 00:00:00 2001 From: Xavier Olive Date: Wed, 30 Oct 2024 23:33:11 +0100 Subject: [PATCH] fix tests --- src/traffic/core/time.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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'