Skip to content

QRY_Condition.UnitOfTime ​

Class

apex
global enum QRY_Condition.UnitOfTime

Units of time for SOQL date literals.


Inner Classes ​

ClassDescription
DAYDay unit (LAST_N_DAYS, NEXT_N_DAYS, etc.)
FISCAL_QUARTERFiscal quarter unit (LAST_N_FISCAL_QUARTERS, etc.)
FISCAL_YEARFiscal year unit (LAST_N_FISCAL_YEARS, etc.)
MONTHMonth unit (THIS_MONTH, LAST_MONTH - not supported with N)
QUARTERQuarter unit (LAST_N_QUARTERS, etc.)
WEEKWeek unit (THIS_WEEK, LAST_WEEK - not supported with N)
YEARYear unit (LAST_N_YEARS, etc.)

Value Details ​

DAY ​

apex
global DAY

Day unit (LAST_N_DAYS, NEXT_N_DAYS, etc.)

FISCAL_QUARTER ​

apex
global FISCAL_QUARTER

Fiscal quarter unit (LAST_N_FISCAL_QUARTERS, etc.)

FISCAL_YEAR ​

apex
global FISCAL_YEAR

Fiscal year unit (LAST_N_FISCAL_YEARS, etc.)

MONTH ​

apex
global MONTH

Month unit (THIS_MONTH, LAST_MONTH - not supported with N)

QUARTER ​

apex
global QUARTER

Quarter unit (LAST_N_QUARTERS, etc.)

WEEK ​

apex
global WEEK

Week unit (THIS_WEEK, LAST_WEEK - not supported with N)

YEAR ​

apex
global YEAR

Year unit (LAST_N_YEARS, etc.)