openMSX
Functions | Variables
openmsx::Date Namespace Reference

Functions

time_t fromString (std::span< const char, 24 > s)
 
std::string toString (time_t time)
 
constexpr time_t adjustTimeT (time_t time)
 

Variables

constexpr time_t INVALID_TIME_T = std::numeric_limits<time_t>::min()
 

Function Documentation

◆ adjustTimeT()

constexpr time_t openmsx::Date::adjustTimeT ( time_t  time)
constexpr

Definition at line 14 of file Date.hh.

References INVALID_TIME_T.

Referenced by openmsx::FileOperations::getModificationDate().

◆ fromString()

time_t openmsx::Date::fromString ( std::span< const char, 24 >  s)

Definition at line 33 of file Date.cc.

References INVALID_TIME_T.

Referenced by TEST_CASE().

◆ toString()

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

Definition at line 153 of file Date.cc.

Referenced by openmsx::ArchiveBase< MemInputArchive >::attribute().

Variable Documentation

◆ INVALID_TIME_T

constexpr time_t openmsx::Date::INVALID_TIME_T = std::numeric_limits<time_t>::min()
constexpr

Definition at line 11 of file Date.hh.

Referenced by adjustTimeT(), fromString(), and TEST_CASE().