Civil
struct CivilA date and a time of day, on a wall clock.
Implements Copyable, Movable, Writable
- Fields
year: Intmonth: Intday: Inthour: Intminute: Intsecond: Int
of
def of(t: Int64) -> Self The date and time t seconds after 1970-01-01T00:00.
seconds
def seconds(self) -> Int64 The inverse of of.
weekday
def weekday(self) -> Int 0 for Sunday to 6 for Saturday.
write_to
def write_to(self, mut writer: T) YYYY-MM-DDTHH:MM:SS.