translated from CPython/Python/pytime.c
Types
PyTime_round_t = enum prFLoor, prCeiling, prHalfEven, prRoundUp
- _PyTime_round_t Source Edit
Procs
proc nPyTime_gmtime(t: time_t; tm: var Tm) {....raises: [OSError], tags: [], forbids: [].}
- Source Edit
proc nPyTime_localtime(t: time_t; tm: var Tm) {....raises: [OSError], tags: [], forbids: [].}
- Source Edit
func nPyTime_ObjectToTimeval(obj: Timestamp; sec: var time_t; usec: var long; round: PyTime_round_t)
- PyTime_ObjectToTimeval but raise OverflowDefect instead of returning -1 i.e. returns nothing. Source Edit