libera_utils.time.multipart_to_dt64#

libera_utils.time.multipart_to_dt64(data: DataFrame, day_field: str, ms_field: str, us_field: str, epoch: str = '1958-01-01')#

Convert multipart time fields to a datetime64 time.

Parameters:
  • data (pd.DataFrame) – Any data structure containing the named subscript-able fields.

  • day_field (str) – Name of the day count field.

  • ms_field (str) – Name of the millisecond count field.

  • us_field (str) – Name of the microsecond count field.

  • epoch (str, optional) – Date time string of the zero-offset epoch. Default=”1958-01-01”

Returns:

Pandas series of the datetime64 values.

Return type:

pd.Series