| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package protocol; | 5 package protocol; |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * Timestamp is a message that represents a specific moment in time. All | 8 * Timestamp is a message that represents a specific moment in time. All |
| 9 * Timestamps will be relative to epoch, meaning that their respective values | 9 * Timestamps will be encoded as UTC. |
| 10 * will be recorded as microseconds from UNIX epoch, defined as | |
| 11 * 00:00:00 January 1, 1970 UTC. | |
| 12 */ | 10 */ |
| 13 message Timestamp { | 11 message Timestamp { |
| 14 // The timestamp's value, in microseconds from epoch. | 12 // The timestamp's value, expressed as an RFC 3339 time string. |
| 15 optional uint64 us_from_epoch = 1; | 13 optional string value = 1; |
| 16 } | 14 } |
| 15 |
| 16 /* |
| 17 * TimeOffset is a message that represents a difference in time. |
| 18 */ |
| 19 message TimeOffset { |
| 20 // The number of seconds in the offset. |
| 21 optional uint32 seconds = 1; |
| 22 // The number of nanoseconds in the offset. |
| 23 optional uint32 nanoseconds = 2; |
| 24 } |
| OLD | NEW |