GammaLib 2.0.0
Loading...
Searching...
No Matches
GTime.cpp File Reference

Time class implementation. More...

#include <ctime>
#include <cstring>
#include <cstdio>
#include "GTools.hpp"
#include "GMath.hpp"
#include "GException.hpp"
#include "GTime.hpp"
#include "GTimeReference.hpp"

Go to the source code of this file.

Macros

#define G_CONSTRUCT   "GTime::GTime(double&, std::string&)"
 
#define G_SECS_GET   "GTime::secs(std::string&)"
 
#define G_SECS_SET   "GTime::secs(double&, std::string&)"
 
#define G_UTC   "GTime::utc(std::string&)"
 
#define G_UTC_GET   "GTime::utc(int&)"
 

Variables

const double mjd_ref = 55197.000766018518519
 MJD of time=0.
 
const double jd_ref = mjd_ref + 2400000.5
 JD of time=0.
 

Detailed Description

Time class implementation.

Author
Juergen Knoedlseder

Definition in file GTime.cpp.

Macro Definition Documentation

◆ G_CONSTRUCT

#define G_CONSTRUCT   "GTime::GTime(double&, std::string&)"

Definition at line 45 of file GTime.cpp.

◆ G_SECS_GET

#define G_SECS_GET   "GTime::secs(std::string&)"

Definition at line 46 of file GTime.cpp.

Referenced by GTime::secs().

◆ G_SECS_SET

#define G_SECS_SET   "GTime::secs(double&, std::string&)"

Definition at line 47 of file GTime.cpp.

Referenced by GTime::secs().

◆ G_UTC

#define G_UTC   "GTime::utc(std::string&)"

Definition at line 48 of file GTime.cpp.

Referenced by GTime::utc().

◆ G_UTC_GET

#define G_UTC_GET   "GTime::utc(int&)"

Definition at line 49 of file GTime.cpp.

Referenced by GTime::utc().

Variable Documentation

◆ jd_ref

const double jd_ref = mjd_ref + 2400000.5

JD of time=0.

Definition at line 42 of file GTime.cpp.

Referenced by GTime::jd(), GTime::jd(), GTime::jd(), and GTime::jd().

◆ mjd_ref

const double mjd_ref = 55197.000766018518519