Functions For Relative Time Period References

These functions convert time levels. Conversion occurs before other operations:

Table 12. Typecasting in Relative Time Period References

FunctionDescriptionReturnsSyntax
@weekConverts to a weekWeek
v350.0.001 (-2(@week)) 
@monthConverts to a monthMonth
 -v350.0.21 (+2q(@month)) - @input 
@qrtConverts to a quarterQuarter
v350.000.05(-4y(@qtr)) 
@halfSix monthsHalf year
v350.0.001 (-3(@half)) 
@yearYearYear
v350.0.18(-18m(@year))