openMSX
Date.hh
Go to the documentation of this file.
1 #ifndef DATE_HH
2 #define DATE_HH
3 
4 #include <string>
5 #include <ctime>
6 
7 namespace openmsx::Date {
8 
9  // 'p' must point to a buffer that is at least 24 characters long
10  [[nodiscard]] time_t fromString(const char* p);
11 
12  [[nodiscard]] std::string toString(time_t time);
13 
14 } // namespace openmsx::Date
15 
16 #endif
openmsx::Date::fromString
time_t fromString(const char *p)
Definition: Date.cc:29
openmsx::Date::toString
std::string toString(time_t time)
Definition: Date.cc:150
openmsx::Date
Definition: Date.cc:5