27 struct tm *
LT = ::localtime_r(&OurTime, &Storage);
30 strftime(Buffer, 25,
"%b %e %H:%M %Y", LT);
31 return std::string(Buffer);
35 struct timeval the_time;
36 timerclear(&the_time);
46 static_cast<TimeValue::SecondsType>( the_time.tv_sec +
47 PosixZeroTimeSeconds ),
48 static_cast<TimeValue::NanoSecondsType>( the_time.tv_usec *
std::string str() const
Convert time to a string.
TimeValue()
Default construct a time value, initializing to ZeroTime.
static TimeValue now()
Creates a TimeValue with the current time (UTC).
static const TimeValue MinTime
The smallest possible time value.
int gettimeofday(struct timeval *tp, void *tzp);
uint64_t toEpochTime() const