| Index: third_party/protobuf/src/google/protobuf/util/internal/constants.h
|
| diff --git a/third_party/protobuf/src/google/protobuf/util/internal/constants.h b/third_party/protobuf/src/google/protobuf/util/internal/constants.h
|
| index 0cb8f6e1e26fe30c9a691e6531d63d02589899c9..e556888cca93414c68d63cfaa5a6d4954c15b70f 100644
|
| --- a/third_party/protobuf/src/google/protobuf/util/internal/constants.h
|
| +++ b/third_party/protobuf/src/google/protobuf/util/internal/constants.h
|
| @@ -43,13 +43,23 @@ namespace converter {
|
| const char kTypeServiceBaseUrl[] = "type.googleapis.com";
|
|
|
| // Format string for RFC3339 timestamp formatting.
|
| -const char kRfc3339TimeFormat[] = "%Y-%m-%dT%H:%M:%S";
|
| +const char kRfc3339TimeFormat[] = "%E4Y-%m-%dT%H:%M:%S";
|
|
|
| -// Minimum seconds allowed in a google.protobuf.TimeStamp or Duration value.
|
| -const int64 kMinSeconds = -315576000000;
|
| +// Same as above, but the year value is not zero-padded i.e. this accepts
|
| +// timestamps like "1-01-0001T23:59:59Z" instead of "0001-01-0001T23:59:59Z".
|
| +const char kRfc3339TimeFormatNoPadding[] = "%Y-%m-%dT%H:%M:%S";
|
|
|
| -// Maximum seconds allowed in a google.protobuf.TimeStamp or Duration value.
|
| -const int64 kMaxSeconds = 315576000000;
|
| +// Minimun seconds allowed in a google.protobuf.Timestamp value.
|
| +const int64 kTimestampMinSeconds = -62135596800;
|
| +
|
| +// Maximum seconds allowed in a google.protobuf.Timestamp value.
|
| +const int64 kTimestampMaxSeconds = 253402300799;
|
| +
|
| +// Minimum seconds allowed in a google.protobuf.Duration value.
|
| +const int64 kDurationMinSeconds = -315576000000;
|
| +
|
| +// Maximum seconds allowed in a google.protobuf.Duration value.
|
| +const int64 kDurationMaxSeconds = 315576000000;
|
|
|
| // Nano seconds in a second.
|
| const int32 kNanosPerSecond = 1000000000;
|
|
|