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

Function GetTimeLocal

src/openrct2/platform/Platform.Common.cpp:82–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 RealWorldTime GetTimeLocal()
83 {
84 auto time = std::time(nullptr);
85 auto localTime = std::localtime(&time);
86
87 RealWorldTime outTime;
88 outTime.hour = localTime->tm_hour;
89 outTime.minute = localTime->tm_min;
90 outTime.second = localTime->tm_sec;
91 return outTime;
92 }
93
94#ifndef __ANDROID__
95 AssetCheckResult CheckAssetDirectoryExists([[maybe_unused]] u8string_view path)

Callers 2

GameAutosaveFunction · 0.85
ScreenshotGetDateTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected