pandas.tseries.offsets.YearBegin.is_year_end#

YearBegin.is_year_end(ts)#

Return boolean whether a timestamp occurs on the year end.

Parameters:
tsTimestamp

The timestamp to check.

See also

is_year_start

Return boolean whether a timestamp occurs on the year start.

Examples

>>> ts = pd.Timestamp(2022, 1, 1)
>>> freq = pd.offsets.Hour(5)
>>> freq.is_year_end(ts)
False