| 92 | } |
| 93 | |
| 94 | absl::StatusOr<std::string> EncodeTimeToString(absl::Time time) { |
| 95 | google::protobuf::Timestamp t; |
| 96 | auto status = EncodeTime(time, &t); |
| 97 | if (!status.ok()) { |
| 98 | return status; |
| 99 | } |
| 100 | return google::protobuf::util::TimeUtil::ToString(t); |
| 101 | } |
| 102 | |
| 103 | } // namespace cel::internal |
no test coverage detected