Searched refs:TimeUtil (Results 1 – 11 of 11) sorted by relevance
/external/protobuf/src/google/protobuf/util/ |
D | time_util_test.cc | 51 EXPECT_TRUE(TimeUtil::FromString("0001-01-01T00:00:00Z", &begin)); in TEST() 52 EXPECT_EQ(TimeUtil::kTimestampMinSeconds, begin.seconds()); in TEST() 54 EXPECT_TRUE(TimeUtil::FromString("9999-12-31T23:59:59.999999999Z", &end)); in TEST() 55 EXPECT_EQ(TimeUtil::kTimestampMaxSeconds, end.seconds()); in TEST() 57 EXPECT_EQ("0001-01-01T00:00:00Z", TimeUtil::ToString(begin)); in TEST() 58 EXPECT_EQ("9999-12-31T23:59:59.999999999Z", TimeUtil::ToString(end)); in TEST() 61 Timestamp time = TimeUtil::NanosecondsToTimestamp(-1); in TEST() 65 EXPECT_EQ("1969-12-31T23:59:59.999999999Z", TimeUtil::ToString(time)); in TEST() 69 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(0))); in TEST() 71 TimeUtil::ToString(TimeUtil::NanosecondsToTimestamp(10000000))); in TEST() [all …]
|
D | time_util.cc | 73 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && in CreateNormalized() 74 seconds <= TimeUtil::kTimestampMaxSeconds); in CreateNormalized() 96 GOOGLE_DCHECK(seconds >= TimeUtil::kDurationMinSeconds && in CreateNormalized() 97 seconds <= TimeUtil::kDurationMaxSeconds); in CreateNormalized() 145 string TimeUtil::ToString(const Timestamp& timestamp) { in ToString() 149 bool TimeUtil::FromString(const string& value, Timestamp* timestamp) { in FromString() 159 Timestamp TimeUtil::GetCurrentTime() { in GetCurrentTime() 166 Timestamp TimeUtil::GetEpoch() { return Timestamp(); } in GetEpoch() 168 string TimeUtil::ToString(const Duration& duration) { in ToString() 193 bool TimeUtil::FromString(const string& value, Duration* duration) { in FromString() [all …]
|
D | time_util.h | 50 class LIBPROTOBUF_EXPORT TimeUtil { 238 out << google::protobuf::util::TimeUtil::ToString(d); 285 out << google::protobuf::util::TimeUtil::ToString(t);
|
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/ |
D | TimeUtilTest.java | 47 Timestamp start = TimeUtil.parseTimestamp("0001-01-01T00:00:00Z"); in testTimestampStringFormat() 48 Timestamp end = TimeUtil.parseTimestamp("9999-12-31T23:59:59.999999999Z"); in testTimestampStringFormat() 49 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MIN, start.getSeconds()); in testTimestampStringFormat() 51 assertEquals(TimeUtil.TIMESTAMP_SECONDS_MAX, end.getSeconds()); in testTimestampStringFormat() 53 assertEquals("0001-01-01T00:00:00Z", TimeUtil.toString(start)); in testTimestampStringFormat() 54 assertEquals("9999-12-31T23:59:59.999999999Z", TimeUtil.toString(end)); in testTimestampStringFormat() 56 Timestamp value = TimeUtil.parseTimestamp("1970-01-01T00:00:00Z"); in testTimestampStringFormat() 61 value = TimeUtil.parseTimestamp("1969-12-31T23:59:59.999Z"); in testTimestampStringFormat() 68 assertEquals("1970-01-01T00:00:00.000000010Z", TimeUtil.toString(value)); in testTimestampStringFormat() 70 assertEquals("1970-01-01T00:00:00.000010Z", TimeUtil.toString(value)); in testTimestampStringFormat() [all …]
|
D | JsonFormatTest.java | 713 .setTimestampValue(TimeUtil.parseTimestamp("1970-01-01T00:00:00Z")) in testTimestamp() 725 .setDurationValue(TimeUtil.parseDuration("12345s")) in testDuration() 911 anyMessage = Any.pack(TimeUtil.parseTimestamp("1969-12-31T23:59:59Z")); in testAnyFields() 920 anyMessage = Any.pack(TimeUtil.parseDuration("12345.10s")); in testAnyFields()
|
/external/tensorflow/tensorflow/core/platform/cloud/ |
D | time_util_test.cc | 22 TEST(TimeUtil, ParseRfc3339Time) { in TEST() argument 29 TEST(TimeUtil, ParseRfc3339Time_ParseError) { in TEST() argument
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | TimeUtil.java | 46 public class TimeUtil { class 79 private TimeUtil() {} in TimeUtil() method in TimeUtil
|
D | JsonFormat.java | 621 generator.print("\"" + TimeUtil.toString(value) + "\""); in printTimestamp() 627 generator.print("\"" + TimeUtil.toString(value) + "\""); in printDuration() 1197 Timestamp value = TimeUtil.parseTimestamp(json.getAsString()); in mergeTimestamp() 1208 Duration value = TimeUtil.parseDuration(json.getAsString()); in mergeDuration()
|
/external/protobuf/src/google/protobuf/ |
D | map_test.cc | 306 return google::protobuf::util::TimeUtil::TimestampToNanoseconds( in Now() 307 google::protobuf::util::TimeUtil::GetCurrentTime()); in Now()
|
/external/protobuf/ |
D | CHANGES.txt | 231 - TimeUtil: utility functions to work with well-known types Timestamp 244 - TimeUtil: utility functions to work with Timestamp and Duration.
|
D | Makefile.am | 345 java/util/src/main/java/com/google/protobuf/util/TimeUtil.java \
|