Vulcan
Aerospace Engineering Utilities Built on Janus
Loading...
Searching...
No Matches
LeapSeconds.hpp File Reference
#include <array>
#include <janus/math/Interpolate.hpp>
#include <vulcan/time/JulianDate.hpp>
#include <vulcan/time/TimeConstants.hpp>
Include dependency graph for LeapSeconds.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vulcan::time::LeapSecondEntry
 Leap second entry: date and cumulative offset. More...

Namespaces

namespace  vulcan
namespace  vulcan::time

Functions

int vulcan::time::leap_seconds_at_tai (double tai_jd)
 Get TAI - UTC offset (leap seconds) for a given TAI Julian Date.
int vulcan::time::leap_seconds_at_utc (double utc_jd)
 Get TAI - UTC offset for a given UTC Julian Date.
bool vulcan::time::is_leap_second (int year, int month, int day, int hour, int min, double sec)
 Check if a given UTC date/time is during a leap second.
double vulcan::time::next_leap_second (double utc_jd)
 Get the date of the next leap second after a given date.
const janus::Interpolator & vulcan::time::leap_second_interpolator ()
 Get a symbolic-compatible leap second interpolator.
template<typename Scalar>
Scalar vulcan::time::leap_seconds_symbolic (const Scalar &utc_jd)
 Symbolic leap second lookup (smooth approximation).

Variables

constexpr std::array< LeapSecondEntry, 28 > vulcan::time::LEAP_SECOND_TABLE
 Complete leap second table from 1972 to present.