MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetServerTimeParts

Function GetServerTimeParts

trinity/Controllers/Tr2ControllerExpression.cpp:241–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239// We really need something like FileTimeToSystemTime in blue and platform-independent
240
241SYSTEMTIME GetServerTimeParts()
242{
243 Be::Time time;
244 if( g_controllerFunctionOverrideEnabled )
245 {
246 time = g_controllerServerTime;
247 }
248 else
249 {
250 time = BeOS->GetCurrentFrameTime();
251 }
252
253 SYSTEMTIME st = {};
254 FileTimeToSystemTime( (FILETIME*)&time, &st );
255 return st;
256}
257
258float GetServerYear()
259{

Callers 7

GetServerYearFunction · 0.85
GetServerMonthFunction · 0.85
GetServerDayFunction · 0.85
GetServerDayOfWeekFunction · 0.85
GetServerHourFunction · 0.85
GetServerMinuteFunction · 0.85
GetServerSecondFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected