src/pylib/Lib/datetime_impl/datetime_impl/meth/pytime

Source   Edit  

translated from CPython/Python/pytime.c

Types

long = clong
Source   Edit  
PyTime_round_t = enum
  prFLoor, prCeiling, prHalfEven, prRoundUp
_PyTime_round_t Source   Edit  
Timestamp = int | float
Source   Edit  

Consts

prTimeout = prRoundUp
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