Go to the documentation of this file.
33 #ifndef GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__
34 #define GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__
55 #include <google/protobuf/port_def.inc>
103 #ifdef GetCurrentTime
104 #undef GetCurrentTime // Visual Studio has macro GetCurrentTime
126 static int64 DurationToNanoseconds(
const Duration& duration);
127 static int64 DurationToMicroseconds(
const Duration& duration);
128 static int64 DurationToMilliseconds(
const Duration& duration);
184 template <
typename T>
189 template <
typename T>
234 template <
typename T>
238 template <
typename T>
242 template <
typename T>
254 out << ::PROTOBUF_NAMESPACE_ID::util::TimeUtil::ToString(
d);
303 out << ::PROTOBUF_NAMESPACE_ID::util::TimeUtil::ToString(t);
310 #include <google/protobuf/port_undef.inc>
312 #endif // GOOGLE_PROTOBUF_UTIL_TIME_UTIL_H__
bool operator>=(StringPiece x, StringPiece y)
Duration & operator%=(Duration &d1, const Duration &d2)
uint128 operator*(const uint128 &lhs, const uint128 &rhs)
void set_seconds(::PROTOBUF_NAMESPACE_ID::int64 value)
Duration & operator+=(Duration &d1, const Duration &d2)
const int64 kTimestampMaxSeconds
uint128 operator/(const uint128 &lhs, const uint128 &rhs)
GLsizei const GLchar *const * string
const int64 kDurationMaxSeconds
google::protobuf::Timestamp Timestamp
uint128 operator-(const uint128 &val)
#define T(upbtypeconst, upbtype, ctype, default_value)
const int64 kDurationMinSeconds
::PROTOBUF_NAMESPACE_ID::int32 nanos() const
bool operator>(StringPiece x, StringPiece y)
void GetCurrentTime(int64 *seconds, int32 *nanos)
::PROTOBUF_NAMESPACE_ID::int32 nanos() const
bool operator<=(StringPiece x, StringPiece y)
uint128 operator%(const uint128 &lhs, const uint128 &rhs)
std::ostream & operator<<(std::ostream &o, const uint128 &b)
::PROTOBUF_NAMESPACE_ID::int64 seconds() const
google::protobuf::Duration Duration
Duration & operator/=(Duration &d, int64 r)
const int64 kTimestampMinSeconds
bool operator==(const uint128 &lhs, const uint128 &rhs)
bool operator!=(const uint128 &lhs, const uint128 &rhs)
Duration & operator*=(Duration &d, int64 r)
::PROTOBUF_NAMESPACE_ID::int64 seconds() const
void set_nanos(::PROTOBUF_NAMESPACE_ID::int32 value)
GLsizei const GLfloat * value
bool operator<(StringPiece x, StringPiece y)
Duration & operator-=(Duration &d1, const Duration &d2)
uint128 operator+(const uint128 &lhs, const uint128 &rhs)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00