Changeset View
Changeset View
Standalone View
Standalone View
src/util/time.h
Show All 34 Lines | |||||
template <typename T> T GetTime(); | template <typename T> T GetTime(); | ||||
/** | /** | ||||
* ISO 8601 formatting is preferred. Use the FormatISO8601{DateTime,Date} | * ISO 8601 formatting is preferred. Use the FormatISO8601{DateTime,Date} | ||||
* helper functions if possible. | * helper functions if possible. | ||||
*/ | */ | ||||
std::string FormatISO8601DateTime(int64_t nTime); | std::string FormatISO8601DateTime(int64_t nTime); | ||||
std::string FormatISO8601Date(int64_t nTime); | std::string FormatISO8601Date(int64_t nTime); | ||||
int64_t ParseISO8601DateTime(const std::string &str); | |||||
#endif // BITCOIN_UTIL_TIME_H | #endif // BITCOIN_UTIL_TIME_H |