Skip to main content

inquarter - script and chart function

This function returns True if timestamp lies inside the quarter containing base_date.

Syntax:  

InQuarter (timestamp, base_date, period_no[, first_month_of_year])

Return data type: Boolean

Arguments:  

Argument Description
timestamp The date that you want to compare with base_date.
base_date Date that is used to evaluate the quarter.
period_no

The quarter can be offset by period_no. period_no is an integer, where the value 0 indicates the quarter which contains base_date. Negative values in period_no indicate preceding quarters and positive values indicate succeeding quarters.

first_month_of_year If you want to work with (fiscal) years not starting in January, indicate a value between 2 and 12 in first_month_of_year.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!