Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 30, 2024
1 parent c609cbc commit 2ec35b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/traffic/core/time.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -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'
Expand Down

0 comments on commit 2ec35b6

Please sign in to comment.