MCPcopy Create free account
hub / github.com/LUX-Core/lux / DateTimeStrFormat

Function DateTimeStrFormat

src/utiltime.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::string DateTimeStrFormat(const char* pszFormat, int64_t nTime)
71{
72 // std::locale takes ownership of the pointer
73 std::locale loc(std::locale::classic(), new boost::posix_time::time_facet(pszFormat));
74 std::stringstream ss;
75 ss.imbue(loc);
76 ss << boost::posix_time::from_time_t(nTime);
77 return ss.str();
78}
79
80std::string DurationToDHMS(int64_t nDurationTime)
81{

Callers 15

AppInit2Function · 0.85
EncodeDumpTimeFunction · 0.85
LogPrintStrFunction · 0.85
GetLuxStakeKernelFunction · 0.85
CheckHashOldMethod · 0.85
CheckHashNewMethod · 0.85
isSpeedAcceptedMethod · 0.85
isSpeedValidMethod · 0.85
InvalidChainFoundFunction · 0.85
UpdateTipFunction · 0.85
LoadBlockIndexDBFunction · 0.85
ToStringMethod · 0.85

Calls 1

strMethod · 0.80

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68