pandas.tseries.offsets.CustomBusinessHour.offset#
- CustomBusinessHour.offset#
Return the time offset applied to the business day.
This property returns the timedelta offset that is added to the business day calculation result. It allows for shifting the result by a fixed time amount.
- Returns:
- timedelta
The time offset applied to the business day.
See also
BusinessDayRepresents a single business day offset.
CustomBusinessDayCustom business day offset with configurable weekmask.
Examples
>>> bd = pd.offsets.BusinessDay() >>> bd.offset datetime.timedelta(0)
>>> import datetime as dt >>> bd = pd.offsets.BusinessDay(offset=dt.timedelta(hours=2)) >>> bd.offset datetime.timedelta(seconds=7200)