libera_utils.time.multipart_to_dt64#
- libera_utils.time.multipart_to_dt64(data: DataFrame | Dataset, day_field: str | None = None, ms_field: str | None = None, us_field: str | None = None, s_field: str | None = None, epoch: str | datetime = datetime.datetime(1958, 1, 1, 0, 0)) Series#
Convert multipart time fields to a datetime64 time.
- Parameters:
data (pd.DataFrame | xr.Dataset) – Any data structure containing the named subscript-able fields.
day_field (str | None, optional) – Name of the day count field.
ms_field (str | None, optional) – Name of the millisecond count field.
us_field (str | None, optional) – Name of the microsecond count field.
s_field (str | None, optional) – Name of the second count field.
epoch (str | datetime) – Date time string of the zero-offset epoch. Default=”1958-01-01”
- Returns:
Pandas series of the datetime64 values.
- Return type:
pd.Series