| #ifndef THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_TIME_TIME_H_ |
| #define THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_TIME_TIME_H_ |
| |
| #include <cstdint> |
| |
| #include "google/protobuf/duration.pb.h" |
| #include "google/protobuf/timestamp.pb.h" |
| #include "absl/time/clock.h" |
| #include "absl/time/time.h" |
| |
| namespace milotic_tlbmc { |
| |
| google::protobuf::Timestamp Now(absl::Time time = absl::Now()); |
| |
| google::protobuf::Timestamp MilliSecondsToTimestamp(uint64_t milliseconds); |
| |
| google::protobuf::Duration EncodeGoogleApiProto(absl::Duration d); |
| |
| absl::Time DecodeGoogleApiProto(const google::protobuf::Timestamp& timestamp); |
| |
| absl::Duration DecodeGoogleApiProto(const google::protobuf::Duration& duration); |
| |
| } // namespace milotic_tlbmc |
| |
| #endif // THIRD_PARTY_MILOTIC_EXTERNAL_CC_TLBMC_TIME_TIME_H_ |