time

module of dascore.utils source

Utility for working with time.

Functions

Name Description
dtype_time_like Return True if dtype is time related (datetime64, timedelta64).
is_datetime64 Determine if an object represents a timedelta64 dtype or value(s).
is_timedelta64 Determine if an object represents a timedelta64 dtype or value(s).
saturate_add Add a timedelta to a time-like value, saturating at int64 bounds.
saturate_subtract Subtract a timedelta from a time-like value, saturating at int64 bounds.
to_datetime64 Convert an object to a datetime64.
to_float Convert various datetime/timedelta things to a float.
to_int Ensure a scalar or array is a number.
to_timedelta64 Convert an object to timedelta64.