siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
time.hpp
Go to the documentation of this file.
1#pragma once
2
8#include <tempoch/tempoch.hpp>
9
10namespace siderust {
11
12namespace scale = tempoch::scale;
13namespace format = tempoch::format;
14
15using CivilTime = tempoch::CivilTime;
16using TimeContext = tempoch::TimeContext;
17
18using TT = tempoch::scale::TT;
19using UTC = tempoch::scale::UTC;
20using UT1 = tempoch::scale::UT1;
21using TDB = tempoch::scale::TDB;
22using TCG = tempoch::scale::TCG;
23using TCB = tempoch::scale::TCB;
24using TAI = tempoch::scale::TAI;
25using GPST = tempoch::scale::GPST;
26
27using JD = tempoch::format::JD;
28using MJD = tempoch::format::MJD;
29using Unix = tempoch::format::Unix;
30using GPS = tempoch::format::GPS;
31using J2000s = tempoch::format::J2000s;
32
33// Calendar values are civil UTC labels, not scalar encoded times.
35
36template <typename Scale, typename Format> using Time = tempoch::EncodedTime<Scale, Format>;
37template <typename Scale, typename Format> using Period = tempoch::Period<Time<Scale, Format>>;
38
39template <typename Scale> using TimeAxis = tempoch::Time<Scale>;
40template <typename Scale> using J2000Seconds = tempoch::J2000Seconds<Scale>;
41
42} // namespace siderust
tempoch::EncodedTime< Scale, Format > Time
Definition time.hpp:36
tempoch::format::Unix Unix
Definition time.hpp:29
tempoch::format::J2000s J2000s
Definition time.hpp:31
CivilTime Calendar
Definition time.hpp:34
tempoch::CivilTime CivilTime
Definition time.hpp:15
tempoch::format::MJD MJD
Definition time.hpp:28
tempoch::Period< Time< Scale, Format > > Period
Definition time.hpp:37
tempoch::format::GPS GPS
Definition time.hpp:30
tempoch::scale::GPST GPST
Definition time.hpp:25
tempoch::scale::UTC UTC
Definition time.hpp:19
tempoch::scale::TDB TDB
Definition time.hpp:21
tempoch::TimeContext TimeContext
Definition time.hpp:16
tempoch::scale::TT TT
Definition time.hpp:18
tempoch::Time< Scale > TimeAxis
Definition time.hpp:39
tempoch::scale::UT1 UT1
Definition time.hpp:20
tempoch::scale::TCG TCG
Definition time.hpp:22
tempoch::J2000Seconds< Scale > J2000Seconds
Definition time.hpp:40
tempoch::format::JD JD
Definition time.hpp:27
tempoch::scale::TAI TAI
Definition time.hpp:24
tempoch::scale::TCB TCB
Definition time.hpp:23