Ignore:
Timestamp:
07/05/08 20:01:55 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbase
Files:
2 edited

Legend:

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

    r8946 r8996  
    138138// --------------------------------------------------------------------------
    139139//
     140// Return date as year(y), month(m), day(d). If the time is afternoon
     141// (>=13:00:00) the date of the next day is returned.
     142//
     143MTime MTime::GetDateOfSunrise() const
     144{
     145    UShort_t y;
     146    Byte_t m;
     147    Byte_t d;
     148
     149    MAstro::Mjd2Ymd(fMjd, y, m, d);
     150
     151    return MTime(y, m, d);
     152}
     153
     154// --------------------------------------------------------------------------
     155//
    140156// GetMoonPhase - calculate phase of moon as a fraction:
    141157//  Returns -1 if calculation failed
     
    167183//   53257.8 --> 53258
    168184//   53258.3 --> 53258
    169 // Which is the time between 13h and 12:59h of the following day. To
     185 // Which is the time between 13h and 12:59h of the following day. To
    170186// this day-period we assign the moon-period at midnight. To get
    171187// the MAGIC definition we now substract 284.
  • trunk/MagicSoft/Mars/mbase/MTime.h

    r8988 r8996  
    117117    TString  GetFileName() const;
    118118    void     GetDate(UShort_t &y, Byte_t &m, Byte_t &d) const;
     119    MTime    GetDateOfSunrise() const;
    119120    void     GetDateOfSunrise(UShort_t &y, Byte_t &m, Byte_t &d) const;
    120121    TTime    GetRootTime() const;
Note: See TracChangeset for help on using the changeset viewer.