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

Function ScreenshotGetFormattedDateTime

src/openrct2/interface/Screenshot.cpp:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static std::string ScreenshotGetFormattedDateTime()
134{
135 auto [date, time] = ScreenshotGetDateTime();
136 char formatted[64];
137 snprintf(
138 formatted, sizeof(formatted), "%4d-%02d-%02d %02d-%02d-%02d", date.year, date.month, date.day, time.hour, time.minute,
139 time.second);
140 return formatted;
141}
142
143static std::optional<std::string> ScreenshotGetNextPath()
144{

Callers 1

ScreenshotGetNextPathFunction · 0.85

Calls 1

ScreenshotGetDateTimeFunction · 0.85

Tested by

no test coverage detected