MCPcopy Create free account
hub / github.com/crownengine/crown / utc_date

Function utc_date

src/core/date.cpp:41–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 void utc_date(Date &date)
42 {
43#if CROWN_PLATFORM_WINDOWS
44 SYSTEMTIME now;
45 GetSystemTime(&now);
46 date.year = now.wYear;
47 date.month = now.wMonth;
48 date.day = now.wDay;
49#else
50 time_t t;
51 struct tm now;
52 ::time(&t);
53 gmtime_r(&t, &now);
54 date.year = now.tm_year + 1900;
55 date.month = now.tm_mon + 1;
56 date.day = now.tm_mday;
57#endif
58 }
59
60 void time(Time &time)
61 {

Callers 1

expandFunction · 0.85

Calls 1

timeFunction · 0.70

Tested by

no test coverage detected