FACT++  1.0
uint32_t Time::NightAsInt ( ) const
Returns
Returns an int corresponding to the current sun-cycle, that means the day of the last sun-rise w.r.t. this Time. YYYYMMDD, e.g. 20111224 for Christmas eve 2011
Remarks
Before March 30th 2013, 12:00 noon was the reference and the returned value belonged to the day of sun-set within the 24h period between two noon's.

Definition at line 397 of file Time.cc.

References D(), GetPrevSunRise(), M(), and Y().

Referenced by DataLogger::CompileFileName(), StateMachineEventServer::Execute(), StateMachineSmartFACT::Execute(), StateMachineDrive< T, S >::HandleTPoint(), EventBuilderWrapper::InitRunNumber(), DataCalib::Update(), and FitsFile::WriteDefaultKeys().

398 {
399  const Time tm = GetPrevSunRise();
400  return tm.Y()*10000 + tm.M()*100 + tm.D();
401 }
unsigned short M() const
Definition: Time.h:95
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
unsigned short Y() const
Definition: Time.h:94
Time GetPrevSunRise() const
Calls GetPrevSunRise(LN_SOLAR_STANDART_HORIZON)
Definition: Time.cc:371
unsigned short D() const
Definition: Time.h:96

+ Here is the call graph for this function:

+ Here is the caller graph for this function: