MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / FormatISO8601Date

Function FormatISO8601Date

src/utiltime.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90std::string FormatISO8601Date(int64_t nTime) {
91 struct tm ts;
92 time_t time_val = nTime;
93#ifdef _MSC_VER
94 gmtime_s(&ts, &time_val);
95#else
96 gmtime_r(&time_val, &ts);
97#endif
98 return strprintf("%04i-%02i-%02i", ts.tm_year + 1900, ts.tm_mon + 1, ts.tm_mday);
99}
100
101std::string FormatISO8601Time(int64_t nTime) {
102 struct tm ts;

Callers 2

ToStringMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68