TimeStamp.h
Go to the documentation of this file.
1 
20 #pragma once
21 
22 #include <cstdint>
23 #include <time.h>
24 #include <cstring>
25 
26 namespace IFS
27 {
35 struct TimeStamp {
36  uint32_t mValue;
37 
38  operator time_t() const
39  {
40  return mValue;
41  }
42 
43  TimeStamp& operator=(time_t t)
44  {
45  mValue = t;
46  return *this;
47  }
48 };
49 
56 time_t fsGetTimeUTC();
57 
58 } // namespace IFS
TimeStamp & operator=(time_t t)
Definition: TimeStamp.h:43
uint32_t mValue
Definition: TimeStamp.h:36
Definition: DirectoryTemplate.h:36
Manage IFS timestamps stored as an unsigned 32-bit value.
Definition: TimeStamp.h:35
time_t fsGetTimeUTC()
Get current timestamp in UTC.