Skip to main content

time

Functions

ReturnNameDescription
voidto_proto_timestampConvert std::chrono::system_clock::time_point to google::protobuf::Timestamp.
std::chrono::system_clock::time_pointfrom_proto_timestampConvert google::protobuf::Timestamp to std::chrono::system_clock::time_point.

to_proto_timestamp

inline
inline void to_proto_timestamp(const std::chrono::system_clock::time_point & from, google::protobuf::Timestamp * to)
Convert std::chrono::system_clock::time_point to google::protobuf::Timestamp.

from_proto_timestamp

inline
inline std::chrono::system_clock::time_point from_proto_timestamp(const google::protobuf::Timestamp & from)
Convert google::protobuf::Timestamp to std::chrono::system_clock::time_point.