1 #ifndef ASTROTIME_H_LOADED
2 #define ASTROTIME_H_LOADED 1
12 #define STperUT 1.0027379093625963247
27 const double lmst(
void)
const;
28 const double ut1(
void)
const;
29 const int mjd(
void)
const;
32 std::string ut1_str(
void)
const;
33 std::string ymd_str(
void)
const;
34 std::string
str(
void)
const;
44 const double obslong);
56 char*
str(
char*,
size_t);
60 std::ostream& operator<<(std::ostream &strm,
const AstroTime& a);
Encapsulates a few time properties which are astronomically relevant.
Definition: astrotime.h:17
AstroTime move(double obs_lon)
Return a new AstroTime representing the same UT as this one, but for a different observatory longitud...
Definition: astrotime.cpp:154
const int mjd(void) const
Return the MJD at time 00:00 on the indicated day.
Definition: astrotime.cpp:201
const double gmst_2pi(void) const
The following calculates GMST of date, in radians.
Definition: astrotime.cpp:277
const double lmst(void) const
Returns the Local Mean Sidereal Time at the observatory.
Definition: astrotime.cpp:248
char * str(char *, size_t)
Format the current time into the given buffer.
Definition: astrotime.cpp:368
const double ut1(void) const
Return UT1 as a number of hours.
Definition: astrotime.cpp:265
AstroTime()
The default constructor produces a valid, but largely useless structure, representing midnight on 185...
Definition: astrotime.cpp:29