Changeset View
Changeset View
Standalone View
Standalone View
src/utiltime.h
Show All 26 Lines | |||||
void SetMockTime(int64_t nMockTimeIn); | void SetMockTime(int64_t nMockTimeIn); | ||||
int64_t GetMockTime(); | int64_t GetMockTime(); | ||||
void MilliSleep(int64_t n); | void MilliSleep(int64_t n); | ||||
/** | /** | ||||
* ISO 8601 formatting is preferred. Use the FormatISO8601{DateTime,Date,Time} | * ISO 8601 formatting is preferred. Use the FormatISO8601{DateTime,Date,Time} | ||||
* helper functions if possible. | * helper functions if possible. | ||||
*/ | */ | ||||
std::string DateTimeStrFormat(const char *pszFormat, int64_t nTime); | |||||
std::string FormatISO8601DateTime(int64_t nTime); | std::string FormatISO8601DateTime(int64_t nTime); | ||||
std::string FormatISO8601Date(int64_t nTime); | std::string FormatISO8601Date(int64_t nTime); | ||||
std::string FormatISO8601Time(int64_t nTime); | std::string FormatISO8601Time(int64_t nTime); | ||||
#endif // BITCOIN_UTILTIME_H | #endif // BITCOIN_UTILTIME_H |