clouddrift.binning.handle_datetime_conversion#
- clouddrift.binning.handle_datetime_conversion(func: Callable) Callable [source]#
A decorator to handle datetime64/timedelta64 conversion for statistics functions. For datetime values, it converts the time to float seconds since epoch before calling the function, and converts the result back to datetime64 after the function call.
Assumes that the function accepts values as keyword arguments.