# periodRange (@salmonui/charts/range-selector)

> The periodRange function of @salmonui/charts/range-selector: The [start, end] a period selects for data ending at end and starting at min (epoch ms or numbers). ytd starts on January 1 of the end's year in timeZone; the result never starts before min.

Canonical: https://salmonui.dev/docs/reference/charts/range-selector/periodRange

```ts
import { periodRange } from '@salmonui/charts/range-selector';
```

Entry index: https://salmonui.dev/docs/reference/charts/range-selector (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/range-selector.md).

## Reference

Kind: function

```ts
function periodRange(period: Period, end: number, min: number, timeZone?: string): [
    number,
    number
];
```

The [start, end] a period selects for data ending at `end` and starting at
`min` (epoch ms or numbers). `ytd` starts on January 1 of the end's year in
`timeZone`; the result never starts before `min`.
