NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
date::tai_clock Class Reference

#include <tz.h>

Collaboration diagram for date::tai_clock:

Public Types

using duration = std::chrono::system_clock::duration
 
using rep = duration::rep
 
using period = duration::period
 
using time_point = std::chrono::time_point< tai_clock >
 

Public Member Functions

template<class Duration >
utc_time< typename std::common_type< Duration, std::chrono::seconds >::type > to_utc (const tai_time< Duration > &t) NOEXCEPT
 
template<class Duration >
tai_time< typename std::common_type< Duration, std::chrono::seconds >::type > from_utc (const utc_time< Duration > &t) NOEXCEPT
 
template<class Duration >
local_time< typename std::common_type< Duration, date::days >::type > to_local (const tai_time< Duration > &t) NOEXCEPT
 
template<class Duration >
tai_time< typename std::common_type< Duration, date::days >::type > from_local (const local_time< Duration > &t) NOEXCEPT
 

Static Public Member Functions

static time_point now ()
 
template<typename Duration >
static std::chrono::time_point< utc_clock, typename std::common_type< Duration, std::chrono::seconds >::type > to_utc (const std::chrono::time_point< tai_clock, Duration > &) NOEXCEPT
 
template<typename Duration >
static std::chrono::time_point< tai_clock, typename std::common_type< Duration, std::chrono::seconds >::type > from_utc (const std::chrono::time_point< utc_clock, Duration > &) NOEXCEPT
 
template<typename Duration >
static std::chrono::time_point< local_t, typename std::common_type< Duration, date::days >::type > to_local (const std::chrono::time_point< tai_clock, Duration > &) NOEXCEPT
 
template<typename Duration >
static std::chrono::time_point< tai_clock, typename std::common_type< Duration, date::days >::type > from_local (const std::chrono::time_point< local_t, Duration > &) NOEXCEPT
 

Static Public Attributes

static const bool is_steady = false
 

Detailed Description

Definition at line 2040 of file tz.h.

Member Typedef Documentation

◆ duration

using date::tai_clock::duration = std::chrono::system_clock::duration

Definition at line 2043 of file tz.h.

◆ period

using date::tai_clock::period = duration::period

Definition at line 2045 of file tz.h.

◆ rep

using date::tai_clock::rep = duration::rep

Definition at line 2044 of file tz.h.

◆ time_point

using date::tai_clock::time_point = std::chrono::time_point<tai_clock>

Definition at line 2046 of file tz.h.

Member Function Documentation

◆ from_local() [1/2]

template<class Duration >
tai_time< typename std::common_type< Duration, date::days >::type > date::tai_clock::from_local ( const local_time< Duration > &  t)
inline

Definition at line 2119 of file tz.h.

References date::January.

◆ from_local() [2/2]

template<typename Duration >
static std::chrono::time_point< tai_clock, typename std::common_type< Duration, date::days >::type > date::tai_clock::from_local ( const std::chrono::time_point< local_t, Duration > &  )
static

Referenced by date::from_stream().

◆ from_utc() [1/2]

template<typename Duration >
static std::chrono::time_point< tai_clock, typename std::common_type< Duration, std::chrono::seconds >::type > date::tai_clock::from_utc ( const std::chrono::time_point< utc_clock, Duration > &  )
static

Referenced by now(), and date::to_tai_time().

◆ from_utc() [2/2]

template<class Duration >
tai_time< typename std::common_type< Duration, std::chrono::seconds >::type > date::tai_clock::from_utc ( const utc_time< Duration > &  t)
inline

Definition at line 2091 of file tz.h.

References date::January.

◆ now()

tai_clock::time_point date::tai_clock::now ( )
inlinestatic

Definition at line 2101 of file tz.h.

References from_utc(), and date::utc_clock::now().

Here is the call graph for this function:

◆ to_local() [1/2]

template<typename Duration >
static std::chrono::time_point< local_t, typename std::common_type< Duration, date::days >::type > date::tai_clock::to_local ( const std::chrono::time_point< tai_clock, Duration > &  )
static

Referenced by date::operator<<().

◆ to_local() [2/2]

template<class Duration >
local_time< typename std::common_type< Duration, date::days >::type > date::tai_clock::to_local ( const tai_time< Duration > &  t)
inline

Definition at line 2109 of file tz.h.

References date::January.

◆ to_utc() [1/2]

template<typename Duration >
static std::chrono::time_point< utc_clock, typename std::common_type< Duration, std::chrono::seconds >::type > date::tai_clock::to_utc ( const std::chrono::time_point< tai_clock, Duration > &  )
static

◆ to_utc() [2/2]

template<class Duration >
utc_time< typename std::common_type< Duration, std::chrono::seconds >::type > date::tai_clock::to_utc ( const tai_time< Duration > &  t)
inline

Definition at line 2080 of file tz.h.

References date::January.

Member Data Documentation

◆ is_steady

const bool date::tai_clock::is_steady = false
static

Definition at line 2047 of file tz.h.


The documentation for this class was generated from the following file: