pandas.tseries.offsets.BusinessHour.offset#

BusinessHour.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

BusinessDay

Represents a single business day offset.

CustomBusinessDay

Custom 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)