pyarrow.compute.day_time_interval_between

pyarrow.compute.day_time_interval_between(start, end, *, memory_pool=None)

Compute the number of days and milliseconds between two timestamps.

Returns the number of days and milliseconds from start to end. That is, first the difference in days is computed as if both timestamps were truncated to the day, then the difference between time times of the two timestamps is computed as if both times were truncated to the millisecond. Null values return null.

Parameters
  • start (Array-like or scalar-like) – Argument to compute function

  • end (Array-like or scalar-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.