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

#include <tz.h>

Collaboration diagram for date::gps_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< gps_clock >
 

Public Member Functions

template<class Duration >
utc_time< typename std::common_type< Duration, std::chrono::seconds >::type > to_utc (const gps_time< Duration > &t) NOEXCEPT
 
template<class Duration >
gps_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 gps_time< Duration > &t) NOEXCEPT
 
template<class Duration >
gps_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< gps_clock, Duration > &) NOEXCEPT
 
template<typename Duration >
static std::chrono::time_point< gps_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< gps_clock, Duration > &) NOEXCEPT
 
template<typename Duration >
static std::chrono::time_point< gps_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 2160 of file tz.h.

Member Typedef Documentation

◆ duration

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

Definition at line 2163 of file tz.h.

◆ period

using date::gps_clock::period = duration::period

Definition at line 2165 of file tz.h.

◆ rep

using date::gps_clock::rep = duration::rep

Definition at line 2164 of file tz.h.

◆ time_point

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

Definition at line 2166 of file tz.h.

Member Function Documentation

◆ from_local() [1/2]

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

Definition at line 2241 of file tz.h.

References date::January, and date::Sunday.

◆ from_local() [2/2]

template<typename Duration >
static std::chrono::time_point< gps_clock, typename std::common_type< Duration, date::days >::type > date::gps_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< gps_clock, typename std::common_type< Duration, std::chrono::seconds >::type > date::gps_clock::from_utc ( const std::chrono::time_point< utc_clock, Duration > &  )
static

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

◆ from_utc() [2/2]

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

Definition at line 2212 of file tz.h.

References date::January, and date::Sunday.

◆ now()

gps_clock::time_point date::gps_clock::now ( )
inlinestatic

Definition at line 2223 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<class Duration >
local_time< typename std::common_type< Duration, date::days >::type > date::gps_clock::to_local ( const gps_time< Duration > &  t)
inline

Definition at line 2231 of file tz.h.

References date::January, and date::Sunday.

◆ to_local() [2/2]

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

Referenced by date::operator<<().

◆ to_utc() [1/2]

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

Definition at line 2200 of file tz.h.

References date::January, and date::Sunday.

◆ to_utc() [2/2]

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

Member Data Documentation

◆ is_steady

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

Definition at line 2167 of file tz.h.


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