pytime.h File Reference

Classes

struct  _Py_clock_info_t
 

Macros

#define _PyTime_MIN
 
#define _PyTime_MAX
 
#define _PYTIME_FROMSECONDS(seconds)
 

Typedefs

typedef int64_t _PyTime_t
 

Enumerations

enum  _PyTime_round_t {
  _PyTime_ROUND_FLOOR ,
  _PyTime_ROUND_CEILING ,
  _PyTime_ROUND_HALF_EVEN ,
  _PyTime_ROUND_UP ,
  _PyTime_ROUND_TIMEOUT
}
 

Functions

 PyAPI_FUNC (PyObject *) _PyLong_FromTime_t(time_t sec)
 
 PyAPI_FUNC (time_t) _PyLong_AsTime_t(PyObject *obj)
 
 PyAPI_FUNC (int) _PyTime_ObjectToTime_t(PyObject *obj
 
 PyAPI_FUNC (_PyTime_t) _PyTime_FromSeconds(int seconds)
 
 PyAPI_FUNC (double) _PyTime_AsSecondsDouble(_PyTime_t t)
 

Variables

time_t * sec
 
time_t _PyTime_round_t
 
time_t longusec
 
time_t longnsec
 
PyObjectobj
 
PyObject _PyTime_round_t round
 
struct timeval * tv
 
time_t * secs
 
time_t intus
 
struct timespec * ts
 
_PyTime_t mul
 
_PyTime_t _PyTime_t div
 
_Py_clock_info_tinfo
 
struct tm * tm
 

Macro Definition Documentation

◆ _PyTime_MIN

#define _PyTime_MIN

◆ _PyTime_MAX

#define _PyTime_MAX

◆ _PYTIME_FROMSECONDS

#define _PYTIME_FROMSECONDS (   seconds)

Typedef Documentation

◆ _PyTime_t

typedef int64_t _PyTime_t

Enumeration Type Documentation

◆ _PyTime_round_t

enum time_t long _PyTime_round_t
Enumerator
_PyTime_ROUND_FLOOR 
_PyTime_ROUND_CEILING 
_PyTime_ROUND_HALF_EVEN 
_PyTime_ROUND_UP 
_PyTime_ROUND_TIMEOUT 

Function Documentation

◆ PyAPI_FUNC() [1/5]

PyAPI_FUNC ( PyObject )

◆ PyAPI_FUNC() [2/5]

PyAPI_FUNC ( time_t  )

◆ PyAPI_FUNC() [3/5]

PyAPI_FUNC ( int  )

◆ PyAPI_FUNC() [4/5]

PyAPI_FUNC ( _PyTime_t  )

◆ PyAPI_FUNC() [5/5]

PyAPI_FUNC ( double  )

Variable Documentation

◆ sec

time_t * sec

◆ _PyTime_round_t

◆ usec

time_t long* usec

◆ nsec

time_t long* nsec

◆ obj

PyObject* obj

◆ round

time_t int _PyTime_round_t round

◆ tv

struct timeval * tv

◆ secs

time_t* secs

◆ us

time_t int* us

◆ ts

struct timespec * ts

◆ mul

_PyTime_t mul

◆ div

◆ info

◆ tm

struct tm * tm