src/pylib/Lib/time_impl/converters

Source   Edit  

Procs

func dtToStructTime(dt: DateTime; res: var struct_time) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
func struct_time(tup`gensym0: struct_time_tuple): struct_time {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func struct_time(tup`gensym2: struct_time_tuple10): struct_time {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func struct_time(tup`gensym4: struct_time_tuple11): struct_time {....raises: [],
    tags: [], forbids: [].}
Source   Edit  
func structTimeToDt(st: struct_time; res: var DateTime) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  

Converters

converter toTuple(st: struct_time): struct_time_tuple {....raises: [], tags: [],
    forbids: [].}
XXX: tuple is Nim's keyword, so no symbol can be named tuple Source   Edit  

Templates

template wrapTuple(sym) {.dirty.}
wrap a func sym(struct_time) to accept struct_time_tuple*, too. Source   Edit  
template wrapTuple(sym, tupType) {.dirty.}
wrap a func sym(struct_time) to accept tupType too. Source   Edit