GammaLib  2.1.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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. More...
 
const double jd_ref = mjd_ref + 2400000.5
 JD of time=0. More...
 

Detailed Description

Time class implementation.

Author
Juergen Knoedlseder

Definition in file GTime.cpp.

Macro Definition Documentation

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

Definition at line 45 of file GTime.cpp.

Referenced by GTime::GTime().

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

Definition at line 46 of file GTime.cpp.

Referenced by GTime::secs().

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

Definition at line 47 of file GTime.cpp.

Referenced by GTime::secs().

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

Definition at line 48 of file GTime.cpp.

Referenced by GTime::utc().

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

Definition at line 49 of file GTime.cpp.

Referenced by GTime::utc().

Variable Documentation

const double jd_ref = mjd_ref + 2400000.5

JD of time=0.

Definition at line 42 of file GTime.cpp.

Referenced by GTime::jd().

const double mjd_ref = 55197.000766018518519

MJD of time=0.

Definition at line 41 of file GTime.cpp.

Referenced by GTime::convert(), GTime::mjd(), GTime::reference(), GTime::secs(), and GTime::set().