julian_day Class Reference

#include <time.hpp>

Inheritance diagram for julian_day:

Inheritance graph
[legend]
Collaboration diagram for julian_day:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 49 of file time.hpp.


Public Member Functions

void from_gregorian_string (const string &)
double & get_jdn ()
const double & get_jdn () const
 julian_day (const time_t &t)
 julian_day (const double &jdn)
 julian_day ()
string to_gregorian_string () const
time_t to_time_t () const

Static Public Member Functions

static julian_day now ()

Static Public Attributes

static const double J1970 = 2440587.5
 Julian day number at UNIX epoch, 1970-01-01.
static const double JDAY = 86400.0
 Number of seconds in a Julian day.

Private Attributes

double jdn

Constructor & Destructor Documentation

julian_day (  ) 

Definition at line 50 of file time.cpp.

Referenced by julian_day::now().

julian_day ( const double &  jdn  )  [explicit]

Definition at line 56 of file time.cpp.

julian_day ( const time_t &  t  )  [explicit]

Definition at line 62 of file time.cpp.


Member Function Documentation

void from_gregorian_string ( const string s  ) 

double& get_jdn (  )  [inline]

Definition at line 59 of file time.hpp.

const double& get_jdn (  )  const [inline]

Definition at line 58 of file time.hpp.

Referenced by simulation::init_context(), and datetime_box::recalc_jdn().

julian_day now (  )  [static]

Definition at line 192 of file time.cpp.

References julian_day::julian_day().

string to_gregorian_string (  )  const

time_t to_time_t (  )  const

Definition at line 68 of file time.cpp.

References julian_day::J1970, julian_day::JDAY, and julian_day::jdn.

Referenced by simulation::simulation().


Member Data Documentation

const double J1970 = 2440587.5 [static]

Julian day number at UNIX epoch, 1970-01-01.

Definition at line 66 of file time.hpp.

Referenced by julian_day::to_time_t().

const double JDAY = 86400.0 [static]

Number of seconds in a Julian day.

Definition at line 67 of file time.hpp.

Referenced by julian_day::to_time_t(), and simulation::update_context().

double jdn [private]

Definition at line 52 of file time.hpp.

Referenced by julian_day::to_time_t().


The documentation for this class was generated from the following files:

Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5