# orca.day

> A module of Orca's API.

`Day`: the partition key of a daily pipeline.

A day is written `YYYY-MM-DD`, and a range of them `2024-01-01..2024-01-31`,
both ends included.

## Structs

### `Day`

```mojo
struct Day
```

A day of the Gregorian calendar.

Implements: `Copyable`, `Equatable`, `Key`, `Movable`, `TimeKey`, `Writable`

Fields:

- `year: Int`
- `month: Int`
- `day: Int`

#### `__lt__`

```mojo
def __lt__(self, other: Self) -> Bool
```

#### `__eq__`

```mojo
def __eq__(self, other: Self) -> Bool
```

#### `parse`

```mojo
def parse(s: StringSpan) -> Self
```

Reads `YYYY-MM-DD`.

#### `next`

```mojo
def next(self) -> Self
```

The day after this one.

#### `prev`

```mojo
def prev(self) -> Self
```

The day before this one.

#### `containing`

```mojo
def containing(year: Int, month: Int, day: Int) -> Self
```

#### `month_of`

```mojo
def month_of(self) -> Month
```

#### `write_to`

```mojo
def write_to(self, mut writer: T)
```
