MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FormatTime

Function FormatTime

src/openrct2/platform/Platform.Posix.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 std::string FormatTime(std::time_t timestamp)
90 {
91 setlocale(LC_TIME, "");
92 char time[20];
93 std::strftime(time, sizeof(time), "%X", std::localtime(&timestamp));
94 return std::string(time);
95 }
96
97 bool IsColourTerminalSupported()
98 {

Callers 2

PopulateListMethod · 0.50
ComputeMaxDateWidthMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected