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).
get_max_min_times Function to get min/max times from a tuple of possible time values.
is_datetime64 Return True if object is a datetime64 (or equivalent) or an array of such.
is_timedelta64 Return True if object is a timedelta64 (or equivalent) or an array of such.
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.