1 #ifndef MHO_DiFXTimeUtilities_HH__
2 #define MHO_DiFXTimeUtilities_HH__
11 #define DIFX_J2000_MJD_EPOCH_UTC_ISO8601 "2000-01-01T12:00:00.000000000Z"
12 #define DIFX_J2000_MJD_EPOCH_OFFSET 51544.50000
32 static std::string get_vexdate_from_mjd_sec(
double mjd,
double sec)
34 double total_mjd = (double)mjd + (
double)sec / 86400.0;
41 auto actual_epoch_start = difx_mjd_epoch + n_leaps;
42 msg_debug(
"difx_interface",
"the leap-second corrected difx mjd epoch start is: "
#define DIFX_J2000_MJD_EPOCH_OFFSET
Definition: MHO_DiFXTimeUtilities.hh:12
#define DIFX_J2000_MJD_EPOCH_UTC_ISO8601
Definition: MHO_DiFXTimeUtilities.hh:11
#define msg_debug(xKEY, xCONTENT)
Definition: MHO_Message.hh:297
static std::string to_iso8601_format(const time_point &tp)
Converts a time_point to ISO8601 formatted string.
Definition: MHO_Clock.hh:617
static time_point from_iso8601_format(const std::string ×tamp)
Converts an ISO8601 formatted timestamp string to a hops_clock time_point object.
Definition: MHO_Clock.hh:599
static std::string to_vex_format(const time_point &tp, bool truncate_to_nearest_second=false)
Converts a hops_clock time_point to VEX-style formatted string (e.g. 2019y106d18h30m15s)
Definition: MHO_Clock.hh:797
static std::chrono::seconds get_leap_seconds_between(const time_point &t_start, const time_point &t_end)
calculates the number of leap seconds inserted between two hops time points (UTC based clock)
Definition: MHO_Clock.hh:322
static time_point from_mjd(const time_point &mjd_epoch, const double &epoch_offset, const double &mjd)
Converts a Modified Julian date (floating point epoch and day) timestamp to a hops_clock time_point.
Definition: MHO_Clock.hh:765
Definition: MHO_ChannelLabeler.hh:17