pandas.tseries.offsets.Tick.is_year_start#
- Tick.is_year_start(ts)#
Return boolean whether a timestamp occurs on the year start.
- Parameters:
- tsTimestamp
The timestamp to check.
See also
is_year_end
Return boolean whether a timestamp occurs on the year end.
Examples
>>> ts = pd.Timestamp(2022, 1, 1) >>> freq = pd.offsets.Hour(5) >>> freq.is_year_start(ts) True