Changeset 14570 for trunk/FACT++
- Timestamp:
- 11/06/12 11:50:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r14569 r14570 811 811 const Time timeNow; 812 812 const Time nowMinusTwelve = timeNow-boost::posix_time::hours(12); 813 fCurrentDay = nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year813 fCurrentDay = (int)(timeNow.MjD());//nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year 814 814 lastFlush = Time(); 815 815 … … 1163 1163 const Time timeNow; 1164 1164 const Time nowMinusTwelve = timeNow-boost::posix_time::hours(12); 1165 int newDayNumber = nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year1165 int newDayNumber = (int)(timeNow.MjD());//nowMinusTwelve.M()*31 + nowMinusTwelve.D();//assume 31 days per month. we do not really care, only want unique number per day of the year 1166 1166 1167 1167 //also check if we should flush the nightly files
Note:
See TracChangeset
for help on using the changeset viewer.