μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Macros | Functions
chrono.h File Reference
#include "pybind11.h"
#include <chrono>
#include <cmath>
#include <ctime>
#include <datetime.h>
#include <mutex>
Include dependency graph for chrono.h:

Go to the source code of this file.

Classes

class  duration_caster< type >
 
class  type_caster< std::chrono::time_point< std::chrono::system_clock, Duration > >
 
class  type_caster< std::chrono::time_point< Clock, Duration > >
 
class  type_caster< std::chrono::duration< Rep, Period > >
 

Macros

#define PyDateTime_DELTA_GET_DAYS(o)   (((PyDateTime_Delta *) o)->days)
 
#define PyDateTime_DELTA_GET_SECONDS(o)   (((PyDateTime_Delta *) o)->seconds)
 
#define PyDateTime_DELTA_GET_MICROSECONDS(o)   (((PyDateTime_Delta *) o)->microseconds)
 

Functions

std::tm * localtime_thread_safe (const std::time_t *time, std::tm *buf)
 

Macro Definition Documentation

◆ PyDateTime_DELTA_GET_DAYS

#define PyDateTime_DELTA_GET_DAYS (   o)    (((PyDateTime_Delta *) o)->days)

Definition at line 23 of file chrono.h.

◆ PyDateTime_DELTA_GET_MICROSECONDS

#define PyDateTime_DELTA_GET_MICROSECONDS (   o)    (((PyDateTime_Delta *) o)->microseconds)

Definition at line 29 of file chrono.h.

◆ PyDateTime_DELTA_GET_SECONDS

#define PyDateTime_DELTA_GET_SECONDS (   o)    (((PyDateTime_Delta *) o)->seconds)

Definition at line 26 of file chrono.h.

Function Documentation

◆ localtime_thread_safe()

std::tm * localtime_thread_safe ( const std::time_t *  time,
std::tm *  buf 
)
inline