FACT++  1.0
Time::Time ( enum init_t  typ = utc)

Construct a Time object with either UTC or local time, or without any particular time.

Parameters
typenum as defined in Time::init_t

Definition at line 58 of file Time.cc.

Referenced by GetNextSunRise(), and GetPrevSunRise().

59 {
60  switch (typ)
61  {
62  case utc:
63  *this = microsec_clock::universal_time();
64  break;
65  case local:
66  *this = microsec_clock::local_time();
67  break;
68  case none:
69  break;
70  }
71 }
Initialize with UTC.
Definition: Time.h:52
Initialize with local time.
Definition: Time.h:53
Do not initialize the time.
Definition: Time.h:51

+ Here is the caller graph for this function: