• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS-IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package quiche.protobuf;
18
19// Copied from
20// https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto.
21message Timestamp {
22  // Represents seconds of UTC time since Unix epoch
23  // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
24  // 9999-12-31T23:59:59Z inclusive.
25  int64 seconds = 1;
26
27  // Non-negative fractions of a second at nanosecond resolution. Negative
28  // second values with fractions must still have non-negative nanos values
29  // that count forward in time. Must be from 0 to 999,999,999
30  // inclusive.
31  int32 nanos = 2;
32}
33