Changeset 15238 for trunk/Mars/mbase


Ignore:
Timestamp:
04/04/13 11:14:55 (12 years ago)
Author:
tbretz
Message:
Added detection of JD in constructor and SetJD memeber function
Location:
trunk/Mars/mbase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MTime.cc

    r12937 r15238  
    105105        Now();
    106106    else
    107         SetMjd(d);
     107        d>2400000 ? SetJD(d) : SetMjd(d);
    108108}
    109109
  • trunk/Mars/mbase/MTime.h

    r14446 r15238  
    103103    Bool_t   SetMjd(UInt_t mjd, ULong_t ms, UInt_t ns=0);
    104104    void     SetMjd(Double_t m);
     105    void     SetJD(Double_t jd) { SetMjd(jd-2400000.5); }
    105106    void     SetAxisTime(Double_t time);
    106107    void     SetMoonPeriod(Double_t p);
Note: See TracChangeset for help on using the changeset viewer.