gordias.util.time_period.get_time_range_bounds#
- gordias.util.time_period.get_time_range_bounds(time_range: TimeRange, time_units: Unit) tuple[int | float, int | float]#
Return the bounds of the time range.
- Parameters:
time_range (gordias.util.time_string.TimeRange) –
TimeRangeobject representing the time range.time_units (cf_units.Unit) – A time unit to define the bounds.
- Returns:
start (int | float) – The start of the time range for the given time unit.
end (int | float) – The end of the time range for the given time unit.