pandas.tseries.offsets.FY5253.is_on_offset#

FY5253.is_on_offset()#

Return boolean whether a timestamp intersects with this frequency.

Parameters
dtdatetime.datetime

Timestamp to check intersections with frequency.

Examples

>>>
>>> ts = pd.Timestamp(2022, 1, 1)
>>> freq = pd.offsets.Day(1)
>>> freq.is_on_offset(ts)
True
>>>
>>> ts = pd.Timestamp(2022, 8, 6)
>>> ts.day_name()
'Saturday'
>>> freq = pd.offsets.BusinessDay(1)
>>> freq.is_on_offset(ts)
False