CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Time.h
Go to the documentation of this file.
1 #ifndef CondCore_CondDB_Time_h
2 #define CondCore_CondDB_Time_h
3 //
7 //
8 #include <string>
9 #include <limits>
10 
11 // imported from CondFormats/Common
12 namespace cond {
13 
14  namespace time {
15 
16  // Time_t
18 
20 
21  const Time_t MIN_VAL(0);
22 
23  static constexpr const char* const MAX_TIMESTAMP = "9999-12-31 23:59:59.000";
24 
26 
28 
29  // TimeType
31 
33 
35 
36  // constant defininig the (maximum) size of the iov groups
37  static constexpr unsigned int SINCE_GROUP_SIZE = 1000;
38 
39  Time_t tillTimeFromNextSince( Time_t nextSince, TimeType timeType );
40 
41  // conversion from framework types
43 
45 
46  // min max sync value....
48 
50 
51  }
52 
53 }
54 #endif
55 
type
Definition: HCALResponse.h:21
static constexpr unsigned int SINCE_GROUP_SIZE
Definition: Time.h:37
_timetype
Definition: Time.h:30
const Time_t MIN_VAL(0)
static constexpr const char *const MAX_TIMESTAMP
Definition: Time.h:23
#define constexpr
TimeType
Definition: Time.h:21
Time_t fromIOVSyncValue(edm::IOVSyncValue const &time, TimeType timetype)
Definition: Time.cc:74
unsigned long long Time_t
Definition: Time.h:16
TimeType timeTypeFromName(const std::string &name)
Definition: Time.cc:24
edm::IOVSyncValue toIOVSyncValue(cond::Time_t time, TimeType timetype, bool startOrStop)
Definition: Time.cc:52
Time_t tillTimeFromNextSince(Time_t nextSince, TimeType timeType)
Definition: Time.cc:33
cond::Time_t Time_t
Definition: Time.h:17
std::pair< unsigned int, unsigned int > UnpackedTime
Definition: Time.h:17
edm::IOVSyncValue limitedIOVSyncValue(Time_t time, TimeType timetype)
Definition: Time.cc:91
std::string timeTypeName(TimeType type)
Definition: Time.cc:19
const Time_t MAX_VAL(std::numeric_limits< Time_t >::max())
cond::TimeType TimeType
Definition: Time.h:27
cond::UnpackedTime UnpackedTime
Definition: Time.h:25