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

Function FormatISO8601DateTime

src/utiltime.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::string FormatISO8601DateTime(int64_t nTime) {
80 struct tm ts;
81 time_t time_val = nTime;
82#ifdef _MSC_VER
83 gmtime_s(&ts, &time_val);
84#else
85 gmtime_r(&time_val, &ts);
86#endif
87 return strprintf("%04i-%02i-%02iT%02i:%02i:%02iZ", ts.tm_year + 1900, ts.tm_mon + 1, ts.tm_mday, ts.tm_hour, ts.tm_min, ts.tm_sec);
88}
89
90std::string FormatISO8601Date(int64_t nTime) {
91 struct tm ts;

Callers 8

LogTimestampStrMethod · 0.85
AppInitMainFunction · 0.85
InvalidChainFoundFunction · 0.85
UpdateTipFunction · 0.85
LoadChainTipFunction · 0.85
dumpwalletFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
verifyExpiredMethod · 0.85

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68