pyinterp.core.period.Period.contains

pyinterp.core.period.Period.contains#

Period.contains(self, point_or_period: object) → bool#

Check if a point is within the period.

Parameters:

point_or_period – A numpy.datetime64 scalar or another Period.

Returns:

True if the point/period is within this period, False otherwise.