# orca.hour

> A module of morca's API.

`Hour`: the partition key of an hourly pipeline.

An hour is written `YYYY-MM-DDTHH` (`2024-01-31T07`, the hour from 07:00 to
08:00 on the schedule's wall clock, UTC without a zone), and a range of them
`2024-01-31T00..2024-01-31T23`, both ends included.

## Structs

### `Hour`

```mojo
struct Hour
```

An hour of a day of the Gregorian calendar, `hour` from 0 to 23.

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

Fields:

- `year: Int`
- `month: Int`
- `day: Int`
- `hour: 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-DDTHH`.

#### `next`

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

The hour after this one.

#### `prev`

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

The hour before this one.

#### `containing`

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

#### `day_of`

```mojo
def day_of(self) -> Day
```

#### `month_of`

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

#### `write_to`

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