pandas.tseries.offsets.FY5253.is_on_offset#

FY5253.is_on_offset(dt)#

Return boolean whether a timestamp intersects with this frequency.

This method checks if a given datetime falls on a fiscal year 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 the fiscal year end, False otherwise.

See also

FY5253Quarter.is_on_offset

Check if timestamp is on fiscal quarter end.

DateOffset.is_on_offset

Check if timestamp intersects with frequency.

Examples

>>> offset = pd.offsets.FY5253(weekday=4, startingMonth=12, variation="last")
>>> ts = pd.Timestamp(2022, 12, 30)
>>> offset.is_on_offset(ts)
True
>>> ts = pd.Timestamp(2022, 12, 31)
>>> offset.is_on_offset(ts)
False