pandas.tseries.offsets.FY5253Quarter.is_on_offset#
- FY5253Quarter.is_on_offset(dt)#
Return boolean whether a timestamp intersects with this frequency.
This method checks if a given datetime falls on a fiscal quarter end date as defined by the 52-53 week fiscal year calendar.
- Parameters:
- dtdatetime
Timestamp to check.
- Returns:
- bool
True if the timestamp is on a fiscal quarter end, False otherwise.
See also
FY5253.is_on_offsetCheck if timestamp is on fiscal year end.
DateOffset.is_on_offsetCheck if timestamp intersects with frequency.
Examples
>>> offset = pd.offsets.FY5253Quarter( ... weekday=4, startingMonth=12, variation="last" ... ) >>> ts = pd.Timestamp(2022, 4, 1) >>> offset.is_on_offset(ts) True
>>> ts = pd.Timestamp(2022, 4, 3) >>> offset.is_on_offset(ts) False