1#ifndef SRC_COMMON_TIME_TIME_HPP_
2#define SRC_COMMON_TIME_TIME_HPP_
6#include "common/decimal.hpp"
11#define AVG_DELTA_UT1 0.087497
59decimal getJulianDateTime(std::time_t epochs);
70decimal getJulianDateTime(
DateTime &time);
78decimal getCurrentJulianDateTime();
90decimal getGreenwichMeanSiderealTime(std::time_t epochs);
103decimal getGreenwichMeanSiderealTime(
DateTime &time);
112decimal getCurrentGreenwichMeanSiderealTime();
DateTime represents a date and time.
Definition time.hpp:17
int year
Year (e.g., 2023)
Definition time.hpp:21
int hour
Hour of the day (0-23)
Definition time.hpp:27
std::time_t epochs
Seconds since epoch.
Definition time.hpp:19
int minute
Minute of the hour (0-59)
Definition time.hpp:29
int day
Day of the month (1-31)
Definition time.hpp:25
int second
Second of the minute (0-60)
Definition time.hpp:31
int month
Month (1-12)
Definition time.hpp:23