Flag = rngcmp(R1,R2)
R1, R2 [ numeric ] - Two IRIS date ranges that will be compared.Flag [ true | false ] - True if the two date ranges are the same.An IRIS date range is distinct from a vector of dates in that only the first and the last dates matter. Often, date ranges are context sensitive. In that case, you can use -Inf for the start date (meaning the earliest possible date in the given context) and Inf for the end date (meaning the latest possible date in the given context), or simply Inf for the whole range (meaning from the earliest possible date to the latest possible date in the given context).
r1 = qq(2010,1):qq(2020,4);
r2 = [qq(2010,1),qq(2020,4)];
rngcmp(r1,r2)
ans =
1