blob: d3a5a9f9b5e6c65563b948d0b435a6d115364bc5 [file] [log] [blame]
#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_