Changeset 13777
- Timestamp:
- 05/18/12 17:44:24 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Time.cc
r12618 r13777 129 129 void Time::Mjd(double mjd) 130 130 { 131 if (mjd > 2400000.5) 132 mjd -= 2400000.5; 133 131 134 // Convert MJD to seconds since offset 132 135 mjd -= 40587; -
trunk/FACT++/src/Time.h
r13676 r13777 77 77 void Mjd(double mjd); 78 78 double Mjd() const; 79 double JD() const { return Mjd()+2400000.5; } 79 80 80 81 // Check validity
Note:
See TracChangeset
for help on using the changeset viewer.