Type: lib.date.BoundaryTime

Namespace: lib.date

Description

Get the start or end of a time period (day, week, month, year). datetime, start, end, boundary, day, week, month, year

Use cases:
- Get period boundaries for reporting
- Normalize dates to period starts/ends

Properties

Property Type Description Default
input_datetime datetime Input datetime {'type': 'datetime', 'year': 0, 'month': 0, 'day': 0, 'hour': 0, 'minute': 0, 'second': 0, 'microsecond': 0, 'tzinfo': 'UTC', 'utc_offset': 0}
period Enum['day', 'week', 'month', 'year'] Time period type day
boundary Enum['start', 'end'] Start or end of period start
start_monday bool For week period: Consider Monday as start of week (False for Sunday) True

Outputs

Output Type Description
output datetime  

Metadata

Browse other nodes in the lib.date namespace.