|
tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
|
A point in time on scale S, stored as a split J2000-second pair.
More...
#include <tempoch/time_base.hpp>
Public Types | |
| using | scale_type = S |
Static Public Member Functions | |
| static Time | from_split_seconds (qtty::Second hi, qtty::Second lo=qtty::Second(0.0)) |
| static Time | from_raw_j2000_seconds (qtty::Second seconds) |
| template<typename Fmt > | |
| static Time | from_encoded (const EncodedTime< S, Fmt > &encoded) |
Decode a scalar encoding Fmt into canonical split storage on scale S (default context). | |
| template<typename Fmt > | |
| static Time | from_encoded_with (const EncodedTime< S, Fmt > &encoded, const TimeContext &ctx) |
Decode using explicit UTC / UT1 policy from ctx when required by format Fmt. | |
| static constexpr const char * | label () |
| template<typename U = S, std::enable_if_t< std::is_same_v< U, scale::UTC >, int > = 0> | |
| static Time | from_civil (const CivilTime &civil) |
| template<typename U = S, std::enable_if_t< std::is_same_v< U, scale::UTC >, int > = 0> | |
| static Time | from_civil (const CivilTime &civil, const TimeContext &ctx) |
Friends | |
| template<typename > | |
| class | Time |
| template<typename , typename > | |
| class | EncodedTime |
A point in time on scale S, stored as a split J2000-second pair.
Definition at line 144 of file time_base.hpp.
Definition at line 155 of file time_base.hpp.
|
inline |
Definition at line 157 of file time_base.hpp.
|
inlinenoexcept |
Definition at line 184 of file time_base.hpp.
Referenced by tempoch::to_gnss_week().
Definition at line 189 of file time_base.hpp.
References tempoch::scale_tag_v, tempoch::Time< S >::Time, and tempoch::detail::time_from_civil().
Referenced by tempoch::EncodedTime< S, F >::from_utc(), tempoch::EncodedTime< S, F >::from_utc(), and tempoch::TimeTraits< CivilTime >::to_mjd_value().
|
inlinestatic |
Definition at line 194 of file time_base.hpp.
References tempoch::scale_tag_v, tempoch::Time< S >::Time, and tempoch::detail::time_from_civil().
|
inlinestatic |
Decode a scalar encoding Fmt into canonical split storage on scale S (default context).
Definition at line 166 of file time_base.hpp.
References tempoch::scale_tag_v, and tempoch::Time< S >::Time.
Referenced by tempoch::TimeTraits< Time< S > >::from_mjd_value(), tempoch::TimeTraits< CivilTime >::from_mjd_value(), tempoch::EncodedTime< S, F >::to(), tempoch::TimeTraits< EncodedTime< S, F > >::to_mjd_value(), and tempoch::EncodedTime< S, F >::to_utc().
|
inlinestatic |
Decode using explicit UTC / UT1 policy from ctx when required by format Fmt.
Definition at line 172 of file time_base.hpp.
References tempoch::scale_tag_v, and tempoch::Time< S >::Time.
Referenced by tempoch::EncodedTime< S, F >::to_utc(), and tempoch::EncodedTime< S, F >::to_with().
|
inlinestatic |
Definition at line 163 of file time_base.hpp.
References tempoch::Time< S >::from_split_seconds(), and tempoch::scale_tag_v.
|
inlinestatic |
Definition at line 159 of file time_base.hpp.
References tempoch::detail::make_time(), tempoch::scale_tag_v, and tempoch::Time< S >::Time.
Referenced by tempoch::from_gnss_week(), and tempoch::Time< S >::from_raw_j2000_seconds().
Definition at line 186 of file time_base.hpp.
|
inlinenoexcept |
Definition at line 293 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 269 of file time_base.hpp.
References tempoch::detail::add_seconds(), tempoch::scale_tag_v, and tempoch::Time< S >::Time.
|
inline |
Definition at line 275 of file time_base.hpp.
References tempoch::detail::add_seconds(), and tempoch::scale_tag_v.
|
inline |
Definition at line 273 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 285 of file time_base.hpp.
References tempoch::detail::difference_seconds(), and tempoch::scale_tag_v.
|
inline |
Definition at line 280 of file time_base.hpp.
References tempoch::detail::add_seconds(), and tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 295 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 300 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 289 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 301 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 302 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 176 of file time_base.hpp.
|
inline |
Definition at line 212 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 229 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 240 of file time_base.hpp.
References tempoch::scale_tag_v.
|
delete |
|
inline |
Definition at line 199 of file time_base.hpp.
References tempoch::detail::time_to_civil().
Referenced by tempoch::TimeTraits< CivilTime >::from_mjd_value(), tempoch::EncodedTime< S, F >::to_utc(), and tempoch::EncodedTime< S, F >::to_utc().
|
inline |
Definition at line 204 of file time_base.hpp.
References tempoch::scale_tag_v, and tempoch::detail::time_to_civil().
|
inline |
Definition at line 223 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 235 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 246 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 180 of file time_base.hpp.
|
inline |
Definition at line 252 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 261 of file time_base.hpp.
References tempoch::scale_tag_v.
Definition at line 152 of file time_base.hpp.
Definition at line 151 of file time_base.hpp.
Referenced by tempoch::Time< S >::from_civil(), tempoch::Time< S >::from_civil(), tempoch::Time< S >::from_encoded(), tempoch::Time< S >::from_encoded_with(), tempoch::Time< S >::from_split_seconds(), and tempoch::Time< S >::operator+().