# QRY_Condition.UnitOfTime

**Class** · Group: `Query Infrastructure`

Learn it: [Fast Start - Selectors](/fast-start-selectors) and [Selectors guide](/selectors-guide)

<div class="apex-member apex-class">

```apex
global enum QRY_Condition.UnitOfTime
```

Units of time for SOQL date literals.

</div>

---

## Inner Classes

| Class | Description |
|-------|-------------|
| [DAY](#day) | Day unit (LAST_N_DAYS, NEXT_N_DAYS, etc.) |
| [FISCAL_QUARTER](#fiscal-quarter) | Fiscal quarter unit (LAST_N_FISCAL_QUARTERS, etc.) |
| [FISCAL_YEAR](#fiscal-year) | Fiscal year unit (LAST_N_FISCAL_YEARS, etc.) |
| [MONTH](#month) | Month unit (THIS_MONTH, LAST_MONTH - not supported with N) |
| [QUARTER](#quarter) | Quarter unit (LAST_N_QUARTERS, etc.) |
| [WEEK](#week) | Week unit (THIS_WEEK, LAST_WEEK - not supported with N) |
| [YEAR](#year) | Year 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.)
