19 using namespace llvm::sys;
27 GetSystemTimeAsFileTime(reinterpret_cast<FILETIME *>(&ft));
40 LT = ::localtime(&OurTime);
45 int Error = ::_localtime64_s(&Storage, &OurTime);
52 strftime(Buffer, 25,
"%b %d %H:%M %Y", LT);
53 assert((Buffer[3] ==
' ' &&
isdigit(Buffer[5]) && Buffer[6] ==
' ') &&
54 "Unexpected format in strftime()!");
58 return std::string(Buffer);
std::string str() const
Convert time to a string.
static TimeValue now()
Creates a TimeValue with the current time (UTC).
uint64_t toEpochTime() const
Provides an abstraction for a fixed point in time.