ibis.expr.api.TimeValue.truncate

TimeValue.truncate(unit)

Zero out smaller-size units beyond indicated unit. Commonly used for time series resampling.

Parameters

unit (string, one of below table) – ‘h’: hour ‘m’: minute ‘s’: second ‘ms’: millisecond ‘us’: microsecond ‘ns’: nanosecond

Returns

truncated

Return type

time