# Function: when()

```ts
function when(description?): object & object;
```

Defined in: [packages/core/src/schemas/fragments.ts:82](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/fragments.ts#L82)

A moment, RFC 3339 (`2026-03-01T18:30:00+01:00`), or a whole day,
`YYYY-MM-DD`. Only its length is checked.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `description?` | `string` |

## Returns

`object` & `object`
