openMSX
Functions | Variables
openmsx::Date Namespace Reference

Functions

time_t fromString (const char *p)
 
std::string toString (time_t time)
 

Variables

const char *const days [7]
 
const char *const months [12]
 

Function Documentation

◆ fromString()

time_t openmsx::Date::fromString ( const char *  p)

Definition at line 29 of file Date.cc.

◆ toString()

std::string openmsx::Date::toString ( time_t  time)

Definition at line 150 of file Date.cc.

References days, and months.

Referenced by openmsx::XmlOutputArchive::XmlOutputArchive().

Variable Documentation

◆ days

const char* const openmsx::Date::days[7]
Initial value:
= {
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
}

Definition at line 7 of file Date.cc.

Referenced by openmsx::RP5C01::serialize(), and toString().

◆ months

const char* const openmsx::Date::months[12]
Initial value:
= {
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
}

Definition at line 11 of file Date.cc.

Referenced by openmsx::RP5C01::serialize(), and toString().