Month
struct MonthA calendar month, month from 1 to 12.
Implements Copyable, Equatable, Key, Movable, TimeKey, Writable
- Fields
year: Intmonth: 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)