diff --git a/utils/data_cube_utilities/dc_time.py b/utils/data_cube_utilities/dc_time.py index 964f228..7ce6808 100644 --- a/utils/data_cube_utilities/dc_time.py +++ b/utils/data_cube_utilities/dc_time.py @@ -1,4 +1,5 @@ import numpy as np +from datetime import datetime def dt_to_str(date, fmt='%Y-%m-%d'): """ @@ -33,4 +34,4 @@ def _scalar_to_n64_datetime(scalar): dt64: numpy.datetime64 The NumPy datetime64 object representing the datetime of the scalar argument. """ - return (scalar * np.timedelta64(1, 's')) + np.datetime64('1970-01-01T00:00:00Z') \ No newline at end of file + return (scalar * np.timedelta64(1, 's')) + np.datetime64('1970-01-01T00:00:00Z')