Stopwatch, frame timing and date formatting.
Definition DateTime.hpp:8
std::string formatNow(std::string_view format="%Y-%m-%d %H:%M:%S", TimeZone zone=TimeZone::Local)
Formats the current time; see formatTime().
std::string formatTime(std::chrono::system_clock::time_point time, std::string_view format="%Y-%m-%d %H:%M:%S", TimeZone zone=TimeZone::Local)
Formats time with std::strftime codes, such as Y-m-d H:M:S; returns an empty string on failure.
TimeZone
Time zone used to format dates.
Definition DateTime.hpp:11