Changeset 8996 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 07/05/08 20:01:55 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MTime.cc
r8946 r8996 138 138 // -------------------------------------------------------------------------- 139 139 // 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 // 143 MTime 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 // 140 156 // GetMoonPhase - calculate phase of moon as a fraction: 141 157 // Returns -1 if calculation failed … … 167 183 // 53257.8 --> 53258 168 184 // 53258.3 --> 53258 169 // Which is the time between 13h and 12:59h of the following day. To185 // Which is the time between 13h and 12:59h of the following day. To 170 186 // this day-period we assign the moon-period at midnight. To get 171 187 // the MAGIC definition we now substract 284. -
trunk/MagicSoft/Mars/mbase/MTime.h
r8988 r8996 117 117 TString GetFileName() const; 118 118 void GetDate(UShort_t &y, Byte_t &m, Byte_t &d) const; 119 MTime GetDateOfSunrise() const; 119 120 void GetDateOfSunrise(UShort_t &y, Byte_t &m, Byte_t &d) const; 120 121 TTime GetRootTime() const;
Note:
See TracChangeset
for help on using the changeset viewer.