00001
00002
00013 #ifndef EFORMAT_HELPER_DATEANDTIME_H
00014 #define EFORMAT_HELPER_DATEANDTIME_H
00015
00016 #include <stdint.h>
00017 #include <string>
00018
00019 namespace eformat {
00020
00021 namespace helper {
00022
00026 class DateAndTime {
00027
00028 public:
00029
00033 DateAndTime ();
00034
00040 DateAndTime (uint32_t val);
00041
00045 inline uint32_t code (void) const { return m_val; }
00046
00050 std::string iso8601 (void) const;
00051
00055 std::string human (void) const;
00056
00057 private:
00058
00059 uint32_t m_val;
00060
00061 };
00062
00063 }
00064
00065 }
00066
00067 #endif