Types
struct_time = ref object tm_year*: int tm_mon*: range[1 .. 12] tm_mday*: MonthdayRange tm_hour*: HourRange tm_min*: MinuteRange tm_sec*: range[0 .. 61] tm_wday*: range[0 .. 6] tm_yday*: range[1 .. 366] tm_isdst*: int tm_zone*: string ## .. warning:: curently is only "LOCAL" or "Etc/UTC" tm_gmtoff*: int
- Source Edit
struct_time_tuple = tuple[tm_year: int, tm_mon: range[1 .. 12], tm_mday: range[1 .. 31], tm_hour: range[0 .. 23], tm_min: range[0 .. 59], tm_sec: range[0 .. 61], tm_wday: range[0 .. 6], tm_yday: range[1 .. 366], tm_isdst: int]
- Source Edit
struct_time_tuple10 = tuple[tm_year: int, tm_mon: range[1 .. 12], tm_mday: range[1 .. 31], tm_hour: range[0 .. 23], tm_min: range[0 .. 59], tm_sec: range[0 .. 61], tm_wday: range[0 .. 6], tm_yday: range[1 .. 366], tm_isdst: int, tm_zone: string]
- Source Edit
struct_time_tuple11 = tuple[tm_year: int, tm_mon: range[1 .. 12], tm_mday: range[1 .. 31], tm_hour: range[0 .. 23], tm_min: range[0 .. 59], tm_sec: range[0 .. 61], tm_wday: range[0 .. 6], tm_yday: range[1 .. 366], tm_isdst: int, tm_zone: string, tm_gmtoff: int]
- Source Edit
Procs
func `<`(a, b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<`(a: struct_time; b: struct_time_tuple11): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<`(a: struct_time_tuple11; b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<`(st: struct_time; t: tuple): bool
- Source Edit
func `<`(t: tuple; st: struct_time): bool
- Source Edit
func `<=`(a, b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<=`(a: struct_time; b: struct_time_tuple11): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<=`(a: struct_time_tuple11; b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `<=`(st: struct_time; t: tuple): bool
- Source Edit
func `<=`(t: tuple; st: struct_time): bool
- Source Edit
func `==`(a, b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `==`(a: struct_time; b: struct_time_tuple11): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `==`(a: struct_time_tuple11; b: struct_time): bool {....raises: [], tags: [], forbids: [].}
- compares based on fields. Source Edit
func `==`(st: struct_time; t: tuple): bool {.inline.}
- Source Edit
func `==`(t: tuple; st: struct_time): bool {.inline.}
- Source Edit
func repr(st: struct_time): string {....raises: [], tags: [], forbids: [].}
-
struct_time.__repr__
returns string starting with "time.struct_time" with 9 fields.
Source Edit
Templates
template initStructTime(): struct_time
- Source Edit
template initStructTime(year, mon, mday, hour, min, sec, wday, yday, isdst, zone, gmtoff): struct_time
- Source Edit
template isUtcZone(st: struct_time): bool
- zone is only local or utc Source Edit