Home
last modified time | relevance | path

Searched refs:UnixEpoch (Results 1 – 25 of 43) sorted by relevance

12

/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs35 static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); field
149 return UnixEpoch.AddTicks(ticksTotal); in ToDateTime()
187 TimeSpan timeSpan = dateTime - UnixEpoch; in FromDateTime()
202 return dateTime > UnixEpoch ? Timespec.InfFuture : Timespec.InfPast; in FromDateTime()
/external/libchrome/base/time/
Dtime_unittest.cc236 EXPECT_EQ(epoch, Time::UnixEpoch()); in TEST_F()
504 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1); in TEST_F()
516 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1000); in TEST_F()
528 t = Time::UnixEpoch() - TimeDelta::FromMicroseconds(1001); in TEST_F()
540 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1000); in TEST_F()
552 t = Time::UnixEpoch() - TimeDelta::FromMilliseconds(1001); in TEST_F()
565 t = Time::UnixEpoch(); in TEST_F()
577 t = Time::UnixEpoch() + TimeDelta::FromMicroseconds(1); in TEST_F()
589 t = Time::UnixEpoch() + TimeDelta::FromMicroseconds(1000); in TEST_F()
601 t = Time::UnixEpoch() + TimeDelta::FromMilliseconds(1000); in TEST_F()
[all …]
Dtime.cc271 return base::Time::UnixEpoch() + in FromJavaTime()
289 Time Time::UnixEpoch() { in UnixEpoch() function in base::Time
361 TimeTicks TimeTicks::UnixEpoch() { in UnixEpoch() function in base::TimeTicks
364 (subtle::TimeNowIgnoringOverride() - Time::UnixEpoch()); in UnixEpoch()
/external/libtextclassifier/abseil-cpp/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
110 TEST(Time, UnixEpoch) { in TEST() argument
111 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
119 absl::Time t = absl::UnixEpoch(); in TEST()
162 t = absl::UnixEpoch(); in TEST()
164 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
226 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/angle/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
110 TEST(Time, UnixEpoch) { in TEST() argument
111 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
119 absl::Time t = absl::UnixEpoch(); in TEST()
162 t = absl::UnixEpoch(); in TEST()
164 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
226 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
110 TEST(Time, UnixEpoch) { in TEST() argument
111 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
119 absl::Time t = absl::UnixEpoch(); in TEST()
162 t = absl::UnixEpoch(); in TEST()
164 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
226 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc80 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
112 TEST(Time, UnixEpoch) { in TEST() argument
113 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
121 absl::Time t = absl::UnixEpoch(); in TEST()
164 t = absl::UnixEpoch(); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
172 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
228 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/openscreen/third_party/abseil/src/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc78 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
110 TEST(Time, UnixEpoch) { in TEST() argument
111 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
119 absl::Time t = absl::UnixEpoch(); in TEST()
162 t = absl::UnixEpoch(); in TEST()
164 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
226 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/abseil-cpp/absl/time/
Dtime_benchmark.cc40 absl::Time t = absl::UnixEpoch(); in BM_Time_Arithmetic()
140 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixNanos()
148 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMicros()
156 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixMillis()
164 const absl::Time t = absl::UnixEpoch() + absl::Seconds(123); in BM_Time_ToUnixSeconds()
Dtime_test.cc80 constexpr absl::Time t0 = absl::UnixEpoch(); in TEST()
112 TEST(Time, UnixEpoch) { in TEST() argument
113 const auto ci = absl::UTCTimeZone().At(absl::UnixEpoch()); in TEST()
121 absl::Time t = absl::UnixEpoch(); in TEST()
164 t = absl::UnixEpoch(); in TEST()
166 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
168 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(1100), t); in TEST()
170 EXPECT_EQ(absl::UnixEpoch() + absl::Milliseconds(500), t); in TEST()
172 EXPECT_EQ(absl::UnixEpoch(), t); in TEST()
228 constexpr absl::Time t = absl::UnixEpoch(); // Any finite time. in TEST()
[all …]
Dformat_test.cc148 EXPECT_EQ(absl::UnixEpoch(), t); // everything defaulted in TEST()
257 t = absl::UnixEpoch(); in TEST()
259 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
262 t = absl::UnixEpoch(); in TEST()
264 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
270 t = absl::UnixEpoch(); in TEST()
275 EXPECT_EQ(absl::UnixEpoch() + absl::Nanoseconds(214748364) + in TEST()
/external/libchrome/crypto/
Dnss_util_unittest.cc15 EXPECT_EQ(base::Time::UnixEpoch(), PRTimeToBaseTime(0)); in TEST()
16 EXPECT_EQ(0, BaseTimeToPRTime(base::Time::UnixEpoch())); in TEST()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DTimestampPartial.cs41 … private static readonly DateTime UnixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); field in Google.Protobuf.WellKnownTypes.Timestamp
120 return UnixEpoch.AddSeconds(Seconds).AddTicks(Nanos / Duration.NanosecondsPerTick); in ToDateTime()
204 DateTime dateTime = UnixEpoch.AddSeconds(seconds); in ToJson()
/external/libchrome/base/memory/
Ddiscardable_shared_memory.cc56 return value ? Time::UnixEpoch() + TimeDelta::FromSeconds(value) : Time(); in TimeFromWireFormat()
60 return time > Time::UnixEpoch() ? (time - Time::UnixEpoch()).InSeconds() : 0; in TimeToWireFormat()
327 DCHECK_EQ((new_state.GetTimestamp() - Time::UnixEpoch()).InSeconds(), in Unlock()
328 (current_time - Time::UnixEpoch()).InSeconds()); in Unlock()
/external/zlib/google/
Dzip_reader.cc133 last_modified_ = base::Time::UnixEpoch(); in EntryInfo()
280 current_entry_info()->last_modified() != base::Time::UnixEpoch()) { in ExtractCurrentEntry()

12