> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# time

```ts theme={null}
function time(...entries): SemanticTimeEntry;
```

Define a named semantic time period.

## Parameters

<ResponseField name="entries" required>
  ...\[`SemanticTimeVariant`, `...SemanticTimeVariant[]`]
</ResponseField>

## Returns

```ts theme={null}
SemanticTimeEntry
```

Semantic time periods are time references that scheduling primitives can use as
scopes, see [cover](cover). A declared time period itself does not create coverage,
assignments, or constraints.

Each entry has `startTime`/`endTime` and optional `dayOfWeek` or `dates` scoping.
Entries without scoping are the default and resolve to every day in the scheduling
period.

Resolution precedence: `dates` > `dayOfWeek` > default.
