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:  

Month Value
February 2
March 3
April 4
May 5
June 6
July 7
August 8
September 9
October 10
November 11
December 12
Example Result
inquarter ('01/25/2013', '01/01/2013', 0) Returns TRUE
inquarter ('01/25/2013', '04/01/2013', 0) Returns FALSE
inquarter ('01/25/2013', '01/01/2013', -1) Returns FALSE
inquarter ('12/25/2012', '01/01/2013', -1) Returns TRUE
inquarter ('01/25/2013', '03/01/2013', 0, 3) Returns FALSE
inquarter ('03/25/2013', '03/01/2013', 0, 3) Returns TRUE

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!