Hour
struct HourAn hour of a day of the Gregorian calendar, hour from 0 to 23.
Implements Copyable, Equatable, Key, Movable, TimeKey, Writable
- Fields
year: Intmonth: Intday: Inthour: Int
__lt__
def __lt__(self, other: Self) -> Bool __eq__
def __eq__(self, other: Self) -> Bool parse
def parse(s: StringSpan) -> Self Reads YYYY-MM-DDTHH.
next
def next(self) -> Self The hour after this one.
prev
def prev(self) -> Self The hour before this one.
containing
def containing(year: Int, month: Int, day: Int, hour: Int) -> Self day_of
def day_of(self) -> Day month_of
def month_of(self) -> Month write_to
def write_to(self, mut writer: T)