tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
Loading...
Searching...
No Matches
tempoch.hpp File Reference

Umbrella header for the tempoch C++ wrapper library. More...

#include "constants.hpp"
#include "data_status.hpp"
#include "eop.hpp"
#include "ffi_core.hpp"
#include "formats/formats.hpp"
#include "gnss_week.hpp"
#include "period.hpp"
#include "scales/scales.hpp"
#include "time.hpp"
#include "time_base.hpp"
Include dependency graph for tempoch.hpp:

Go to the source code of this file.

Detailed Description

Umbrella header for the tempoch C++ wrapper library.

Include this single header to get the full tempoch C++ API:

auto utc = tempoch::Time<tempoch::scale::UTC>::from_civil({2026, 7, 15, 22, 0, 0});
auto tt = utc.to<tempoch::scale::TT>();
auto jd = tt.to<tempoch::format::JD>();
auto mjd = tt.to<tempoch::format::MJD>();
if (auto eop = tempoch::eop_at(mjd.value()))
std::cout << "DUT1 = " << eop->ut1_minus_utc << " s\n";
std::cout << "J2000 = " << tempoch::constants::j2000_jd_tt() << " JD\n";
static Time from_civil(const CivilTime &civil)
Time< TargetScale > to() const
double j2000_jd_tt() noexcept
J2000.0 epoch as a Julian Date in TT (2 451 545.0).
Definition constants.hpp:20
std::optional< EopValues > eop_at(double mjd_utc)
Interpolate IERS EOP values at mjd_utc.
Definition eop.hpp:81
Umbrella header for the tempoch C++ wrapper library.

Definition in file tempoch.hpp.