HOPS
HOPS class reference
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
hops::gps_clock Struct Reference

GPS clock: SI seconds since 1980-01-06; constant offset from UTC. More...

#include <hops_leap_seconds.hh>

Public Types

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

Static Public Member Functions

template<class Duration >
static gps_time< Duration > from_utc (const utc_time< Duration > &t)
 
template<class Duration >
static utc_time< Duration > to_utc (const gps_time< Duration > &t)
 

Static Public Attributes

static CONSTDATA bool is_steady = false
 

Detailed Description

GPS clock: SI seconds since 1980-01-06; constant offset from UTC.

Member Typedef Documentation

◆ duration

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

◆ period

using hops::gps_clock::period = duration::period

◆ rep

using hops::gps_clock::rep = duration::rep

◆ time_point

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

Member Function Documentation

◆ from_utc()

template<class Duration >
static gps_time< Duration > hops::gps_clock::from_utc ( const utc_time< Duration > &  t)
inlinestatic

◆ to_utc()

template<class Duration >
static utc_time< Duration > hops::gps_clock::to_utc ( const gps_time< Duration > &  t)
inlinestatic

Member Data Documentation

◆ is_steady

CONSTDATA bool hops::gps_clock::is_steady = false
static

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