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

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

#include "ffi_core.hpp"
#include "time.hpp"
#include "period.hpp"
Include dependency graph for tempoch.hpp:
This graph shows which files directly or indirectly include this file:

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 jd = tempoch::JulianDate::from_utc({2026, 7, 15, 22, 0, 0});
auto mjd = tempoch::MJD::from_jd(jd);
tempoch::Period night(60200.0, 60200.5);
static JulianDate from_utc(const UTC &utc)
Create from a UTC date-time.
Definition time.hpp:99
static MJD from_jd(const JulianDate &jd)
Create from a Julian Date.
Definition time.hpp:174
A time period [start, end] in MJD.
Definition period.hpp:33
Umbrella header for the tempoch C++ wrapper library.

Definition in file tempoch.hpp.