Searched refs:HoursToDuration (Results 1 – 3 of 3) sorted by relevance
149 EXPECT_EQ("3600s", TimeUtil::ToString(TimeUtil::HoursToDuration(1))); in TEST()150 EXPECT_EQ("-3600s", TimeUtil::ToString(TimeUtil::HoursToDuration(-1))); in TEST()168 EXPECT_EQ(1, TimeUtil::DurationToHours(TimeUtil::HoursToDuration(1))); in TEST()169 EXPECT_EQ(-1, TimeUtil::DurationToHours(TimeUtil::HoursToDuration(-1))); in TEST()
106 static Duration HoursToDuration(int64 hours);
255 Duration TimeUtil::HoursToDuration(int64 hours) { in HoursToDuration() function in google::protobuf::util::TimeUtil