truncate
Truncates each instant to a fixed multiple of every (ADR-2026-10-30-02): floored toward negative infinity (pre-epoch instants stay on their boundary), anchored at epoch zero; the duration must be a positive number of nanoseconds (whole milliseconds or coarser in practice - sub-millisecond truncation is exact arithmetic on the nanosecond count). Nulls propagate.
Parameters
s | the DATETIME Series |
every | the fixed truncation period (positive) |
Returns
the truncated DATETIME Series.
Throws
DataFrameException on a non-positive period or
non-DATETIME kinds.