align_datetime#
- openstef_core.utils.datetime.align_datetime(timestamp: datetime, interval: timedelta, mode: Literal['ceil', 'floor'] = 'ceil') datetime[source]#
Align timestamp using modulo approach.
- Parameters:
- Returns:
Aligned datetime matching the specified interval boundary.
- Raises:
ValueError – If mode is not “ceil” or “floor”.
- Return type: