|
DUDS
|
Distributed Update of Data from Something
|
Terran time stuffs. More...
#include <Planetary.hpp>
Public Types | |
| typedef duds::time::interstellar::Femtoseconds | duration |
| typedef duration::period | period |
| typedef duration::rep | rep |
| typedef std::chrono::time_point< Earth, duration > | time_point |
Public Member Functions | |
| Earth () | |
| template<class Clock , class Duration > | |
| void | addLeapSeconds (duds::time::interstellar::TimePoint< Clock, Duration > &time) |
| Adds leap seconds to the given time in UTC, resulting in TAI. More... | |
| boost::gregorian::date | date (const duds::time::interstellar::SecondTime &t) const |
| Converts from IST to UTC and provides a date result. More... | |
| template<class ISTime > | |
| boost::gregorian::date | date (const ISTime &t) const |
| Converts from IST to UTC and provides a date result. More... | |
| template<class ISTime > | |
| void | date (ISTime &dest, const boost::gregorian::date &src) |
| Converts a Gregorian calendar date into one of the time formats defined inside the duds::time::interstellar namespace. More... | |
| boost::gregorian::date | dateUtcToTai (const duds::time::interstellar::SecondTime &t) const |
| Converts from UTC to TAI and provides a date result. More... | |
| template<class ISTime > | |
| boost::gregorian::date | dateUtcToTai (const ISTime &t) const |
| Converts from IST to UTC and provides a date result. More... | |
| time_point | now () noexcept |
| boost::posix_time::ptime | posix (const duds::time::interstellar::MilliTime &t) const |
| Converts from IST to UTC and provides a ptime result. More... | |
| template<class ISTime > | |
| boost::posix_time::ptime | posix (const ISTime &t) const |
| Converts from IST to UTC and provides a ptime result. More... | |
| boost::posix_time::ptime | posixUtcToTai (const duds::time::interstellar::MilliTime &t) const |
| Converts from UTC to TAI and provides a ptime result. More... | |
| template<class ISTime > | |
| boost::posix_time::ptime | posixUtcToTai (const ISTime &t) const |
| Converts from UTC to TAI and provides a ptime result. More... | |
| template<class ISTime > | |
| void | time (ISTime &dest, const boost::posix_time::ptime &src) |
| Converts a POSIX time into one of the time formats defined inside the duds::time::interstellar namespace. More... | |
| std::time_t | timeUtc (const duds::time::interstellar::SecondTime &t) const |
| Converts from IST to UTC and provides a std::time_t result. More... | |
| template<class ISTime > | |
| std::time_t | timeUtc (const ISTime &t) const |
| Converts from IST to UTC and provides a std::time_t result. More... | |
Static Public Member Functions | |
| static const boost::gregorian::date & | dateZero () |
| static void | make (const std::string &path="/usr/share/zoneinfo-leaps/UTC") |
| Makes the Earth planetary time object using the given zoneinfo file for data on leap seconds. More... | |
| static const boost::posix_time::ptime & | timeZero () |
Public Attributes | |
| LeapSeconds | leaps |
Static Public Attributes | |
| static constexpr bool | is_steady = false |
Private Attributes | |
| LeapBounds | bound |
Terran time stuffs.
Definition at line 44 of file Planetary.hpp.
Definition at line 56 of file Planetary.hpp.
| typedef duration::period duds::time::planetary::Earth::period |
Definition at line 58 of file Planetary.hpp.
| typedef duration::rep duds::time::planetary::Earth::rep |
Definition at line 57 of file Planetary.hpp.
| typedef std::chrono::time_point<Earth, duration> duds::time::planetary::Earth::time_point |
Definition at line 59 of file Planetary.hpp.
| duds::time::planetary::Earth::Earth | ( | ) |
Definition at line 20 of file Planetary.cpp.
Referenced by make().
|
inline |
Adds leap seconds to the given time in UTC, resulting in TAI.
| time | The time that needs leap seconds. |
Definition at line 159 of file Planetary.hpp.
| boost::gregorian::date duds::time::planetary::Earth::date | ( | const duds::time::interstellar::SecondTime & | t | ) | const |
Converts from IST to UTC and provides a date result.
Definition at line 42 of file Planetary.cpp.
|
inline |
Converts from IST to UTC and provides a date result.
Definition at line 76 of file Planetary.hpp.
|
inline |
Converts a Gregorian calendar date into one of the time formats defined inside the duds::time::interstellar namespace.
Definition at line 175 of file Planetary.hpp.
| boost::gregorian::date duds::time::planetary::Earth::dateUtcToTai | ( | const duds::time::interstellar::SecondTime & | t | ) | const |
Converts from UTC to TAI and provides a date result.
Definition at line 52 of file Planetary.cpp.
Referenced by dateUtcToTai(), and timeUtc().
|
inline |
Converts from IST to UTC and provides a date result.
Definition at line 111 of file Planetary.hpp.
|
static |
Definition at line 22 of file Planetary.cpp.
Referenced by date(), and duds::time::planetary::ToDate().
|
static |
Makes the Earth planetary time object using the given zoneinfo file for data on leap seconds.
Definition at line 30 of file Planetary.cpp.
|
inlinenoexcept |
Definition at line 61 of file Planetary.hpp.
| boost::posix_time::ptime duds::time::planetary::Earth::posix | ( | const duds::time::interstellar::MilliTime & | t | ) | const |
Converts from IST to UTC and provides a ptime result.
Definition at line 62 of file Planetary.cpp.
Referenced by dateUtcToTai(), and posix().
|
inline |
Converts from IST to UTC and provides a ptime result.
Definition at line 128 of file Planetary.hpp.
| boost::posix_time::ptime duds::time::planetary::Earth::posixUtcToTai | ( | const duds::time::interstellar::MilliTime & | t | ) | const |
Converts from UTC to TAI and provides a ptime result.
Definition at line 72 of file Planetary.cpp.
Referenced by posix(), and posixUtcToTai().
|
inline |
Converts from UTC to TAI and provides a ptime result.
Definition at line 145 of file Planetary.hpp.
|
inline |
Converts a POSIX time into one of the time formats defined inside the duds::time::interstellar namespace.
Definition at line 187 of file Planetary.hpp.
| std::time_t duds::time::planetary::Earth::timeUtc | ( | const duds::time::interstellar::SecondTime & | t | ) | const |
Converts from IST to UTC and provides a std::time_t result.
Definition at line 35 of file Planetary.cpp.
|
inline |
Converts from IST to UTC and provides a std::time_t result.
Definition at line 93 of file Planetary.hpp.
|
static |
Definition at line 26 of file Planetary.cpp.
Referenced by time(), and duds::time::planetary::ToPosix().
|
private |
Definition at line 45 of file Planetary.hpp.
|
static |
Definition at line 60 of file Planetary.hpp.
| LeapSeconds duds::time::planetary::Earth::leaps |
Definition at line 48 of file Planetary.hpp.
Referenced by date(), dateUtcToTai(), posix(), posixUtcToTai(), and timeUtc().