diff options
Diffstat (limited to 'datetime.h')
-rw-r--r-- | datetime.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -19,9 +19,6 @@ class date_t { date_t(const datetime_t& _when); - protected: - std::time_t when; - public: static date_t now; static const char * formats[]; @@ -29,6 +26,8 @@ class date_t static std::string input_format; static std::string output_format; + std::time_t when; + date_t() : when(0) {} date_t(const date_t& _when) : when(_when.when) {} |