Changeset 14574


Ignore:
Timestamp:
11/07/12 08:10:53 (12 years ago)
Author:
lyard
Message:
moved Mjd back 12 hours so that files are closed at noon
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r14573 r14574  
    811811    const Time timeNow;
    812812    const Time nowMinusTwelve = timeNow-boost::posix_time::hours(12);
    813     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
     813    fCurrentDay = (int)(nowMinusTwelve.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
    814814    lastFlush = Time();
    815815
     
    11631163    const Time timeNow;
    11641164    const Time nowMinusTwelve = timeNow-boost::posix_time::hours(12);
    1165     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
     1165    int newDayNumber = (int)(nowMinusTwelve.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
    11661166
    11671167    //also check if we should flush the nightly files
Note: See TracChangeset for help on using the changeset viewer.