Orca · API

orca.month

Month: the partition key of a monthly pipeline.

A month is written YYYY-MM, and a range of them 2024-01..2024-12, both ends included. A run is over a list of months; a mapped step runs once for each.

Structs

Month

struct Month

A calendar month, month from 1 to 12.

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

Fields
year: Int
month: Int

__lt__

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

__eq__

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

parse

def parse(s: StringSpan) -> Self

Reads YYYY-MM.

next

def next(self) -> Self

The month after this one.

prev

def prev(self) -> Self

The month before this one.

containing

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

write_to

def write_to(self, mut writer: T)

Functions

days_in

def days_in(year: Int, month: Int) -> Int

The number of days in a month of the Gregorian calendar.

parse_months

def parse_months(s: StringSpan) -> List[Month]

Reads YYYY-MM, YYYY-MM..YYYY-MM (both ends included), or a comma-separated list of either, in the order given.