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

Function FormatShortDate

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

Source from the content-addressed store, hash-verified

79 }
80
81 std::string FormatShortDate(std::time_t timestamp)
82 {
83 setlocale(LC_TIME, "");
84 char date[20];
85 std::strftime(date, sizeof(date), "%x", std::localtime(&timestamp));
86 return std::string(date);
87 }
88
89 std::string FormatTime(std::time_t timestamp)
90 {

Callers 2

PopulateListMethod · 0.50
ComputeMaxDateWidthMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected