Skip to main content
`Ctrl`+`K`

# pandas.tseries.offsets.QuarterEnd.is_on_offset

QuarterEnd.is_on_offset(dt)

  Return boolean whether a timestamp intersects with this frequency.

  This method checks if the given datetime falls on a quarter boundary as defined by the offset’s `startingMonth` and day option.

  Parameters:
    dt datetime

      Timestamp to check intersections with frequency.

  Returns:
    bool

      True if the timestamp is on the offset, False otherwise.

  See also

  `QuarterOffset`

    Parent class with quarterly offset logic.

  Examples

      >>> ts = pd.Timestamp(2022, 1, 1)
      >>> freq = pd.offsets.BQuarterBegin()
      >>> freq.is_on_offset(ts)
      False
      >>> ts = pd.Timestamp(2022, 3, 1)
      >>> freq.is_on_offset(ts)
      True