# Alepha - Datetime

## Installation

Part of the `alepha` package. Import from `alepha/datetime`.

```bash
npm install alepha
```

## Overview

Date and time operations.

**Features:**

- Recurring interval definitions
- Duration helpers (numbers, `[n, unit]` tuples and `Duration` objects)
- Timezone support
- Portable date-time and duration values

## API Reference

### Primitives

- [`$interval`](https://latest.alepha.dev/docs/reference-primitives-$interval.md) - Run a function periodically.

### Providers

- [`DateTimeProvider`](https://latest.alepha.dev/docs/reference-providers-datetimeprovider.md) - The injectable clock. Every service reads time through it - `nowMillis()`,
