Public Member Functions

Epoch2Leap Class Reference

#include <date.h>

List of all members.

Public Member Functions

 Epoch2Leap (const double epoch_time=0., const int leap_sec=0)
 constructor
 ~Epoch2Leap ()
 destructor
double get_epoch_time () const
 accessor to the epoch time of a change leap seconds event
int get_leap_sec () const
 accessor to the number of leap seconds at the given time
void print () const
 print out content

Detailed Description

Dates UTC to TAI leap seconds increments, and number of leap seconds to add


Constructor & Destructor Documentation

Epoch2Leap::Epoch2Leap ( const double  epoch_time = 0.,
const int  leap_sec = 0 
) [inline]

constructor

Parameters:
epoch_time a date in UNIX epoch time when leap seconds increase
leap_sec the total number of leap seconds at the given date

Member Function Documentation

double Epoch2Leap::get_epoch_time (  )  const [inline]

accessor to the epoch time of a change leap seconds event

Returns:
a UNIX epoch time
int Epoch2Leap::get_leap_sec (  )  const [inline]

accessor to the number of leap seconds at the given time

Returns:
the leap seconds

The documentation for this class was generated from the following file: