Home
last modified time | relevance | path

Searched refs:FromSeconds (Results 1 – 6 of 6) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan()
44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan()
95 … Assert.AreEqual(new Duration { Seconds = 1 }, Duration.FromTimeSpan(TimeSpan.FromSeconds(1))); in FromTimeSpan()
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan()
44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan()
95 … Assert.AreEqual(new Duration { Seconds = 1 }, Duration.FromTimeSpan(TimeSpan.FromSeconds(1))); in FromTimeSpan()
/third_party/protobuf/python/google/protobuf/internal/
Dwell_known_types_test.py180 message.FromSeconds(1)
185 message.FromSeconds(-1)
231 message.FromSeconds(1)
235 message.FromSeconds(-1)
Dwell_known_types.py234 def FromSeconds(self, seconds): member in Timestamp
362 def FromSeconds(self, seconds): member in Duration
/third_party/node/deps/v8/src/base/platform/
Dtime.h81 static constexpr TimeDelta FromSeconds(int64_t seconds) { in FromSeconds() function
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dstylo.hpp59721 static inline BaseTimeDuration FromSeconds(double aSeconds) in FromSeconds() function in mozilla::BaseTimeDuration