MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / DateTimeStrFormat

Function DateTimeStrFormat

src/commons/util/util.cpp:1020–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1018}
1019
1020string DateTimeStrFormat(const char* pszFormat, int64_t nTime) {
1021 // locale takes ownership of the pointer
1022 locale loc(locale::classic(), new boost::posix_time::time_facet(pszFormat));
1023 stringstream ss;
1024 ss.imbue(loc);
1025 ss << boost::posix_time::from_time_t(nTime);
1026 return ss.str();
1027}
1028
1029
1030static bool ParsePrechecks(const std::string& str)

Callers 10

AppInitFunction · 0.85
InvalidChainFoundFunction · 0.85
UpdateTipFunction · 0.85
LoadBlockIndexDBFunction · 0.85
PrintBlockTreeFunction · 0.85
AskForMethod · 0.85
ToStringMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
EncodeDumpTimeFunction · 0.85
rfc1123TimeFunction · 0.85

Calls 1

strMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68