Home
last modified time | relevance | path

Searched refs:FromDateTime (Results 1 – 23 of 23) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DTimespecTest.cs134 public void FromDateTime() in FromDateTime() method in Grpc.Core.Internal.Tests.TimespecTest
137 Timespec.FromDateTime(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc))); in FromDateTime()
140 … Timespec.FromDateTime(new DateTime(1970, 1, 1, 0, 0, 10, DateTimeKind.Utc).AddTicks(50))); in FromDateTime()
143 Timespec.FromDateTime(new DateTime(2015, 7, 21, 4, 21, 48, DateTimeKind.Utc))); in FromDateTime()
147 … Timespec.FromDateTime(new DateTime(1969, 12, 31, 23, 59, 55, DateTimeKind.Utc).AddTicks(10))); in FromDateTime()
150 Assert.AreEqual(Timespec.InfFuture, Timespec.FromDateTime(DateTime.MaxValue)); in FromDateTime()
151 Assert.AreEqual(Timespec.InfPast, Timespec.FromDateTime(DateTime.MinValue)); in FromDateTime()
155 … () => Timespec.FromDateTime(new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Unspecified))); in FromDateTime()
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DTimestampPartial.cs146 public static Timestamp FromDateTime(DateTime dateTime) in FromDateTime() method in Google.Protobuf.WellKnownTypes.Timestamp
170 return FromDateTime(dateTimeOffset.UtcDateTime); in FromDateTimeOffset()
DTimeExtensions.cs50 return Timestamp.FromDateTime(dateTime); in ToTimestamp()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dtime_test.cc1177 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), kMax, in TEST()
1181 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), kMin, in TEST()
1187 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1189 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1191 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1193 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1197 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1199 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1201 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime_test.cc1174 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), in TEST()
1178 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), in TEST()
1185 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1187 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1189 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1191 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1193 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1197 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1199 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/libtextclassifier/abseil-cpp/absl/time/
Dtime_test.cc1177 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), kMax, in TEST()
1181 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), kMin, in TEST()
1187 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1189 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1191 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1193 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1197 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1199 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1201 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/abseil-cpp/absl/time/
Dtime_test.cc1174 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), in TEST()
1178 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), in TEST()
1185 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1187 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1189 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1191 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1193 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1197 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1199 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/openscreen/third_party/abseil/src/absl/time/
Dtime_test.cc1181 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), kMax, in TEST()
1185 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), kMin, in TEST()
1191 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1193 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1197 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1199 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1201 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1203 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1205 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/angle/third_party/abseil-cpp/absl/time/
Dtime_test.cc1181 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::max(), kMax, in TEST()
1185 t = absl::FromDateTime(std::numeric_limits<absl::civil_year_t>::min(), kMin, in TEST()
1191 t = absl::FromDateTime(2015, 1, 1, 0, 0, 60, utc); in TEST()
1193 t = absl::FromDateTime(2015, 1, 1, 0, 60, 0, utc); in TEST()
1195 t = absl::FromDateTime(2015, 1, 1, 24, 0, 0, utc); in TEST()
1197 t = absl::FromDateTime(2015, 1, 32, 0, 0, 0, utc); in TEST()
1199 t = absl::FromDateTime(2015, 13, 1, 0, 0, 0, utc); in TEST()
1201 t = absl::FromDateTime(2015, 13, 32, 60, 60, 60, utc); in TEST()
1203 t = absl::FromDateTime(2015, 1, 1, 0, 0, -1, utc); in TEST()
1205 t = absl::FromDateTime(2015, 1, 1, 0, -1, 0, utc); in TEST()
[all …]
Dtime.h1194 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs171 public static Timespec FromDateTime(DateTime dateTime) in FromDateTime() method
DAsyncCall.cs504 …details.Method, details.Host, Timespec.FromDateTime(details.Options.Deadline.Value), nativeCredent… in CreateNativeCall()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs89 Assert.AreEqual(timestamp, Timestamp.FromDateTime(dateTime)); in AssertRoundtrip()
/external/grpc-grpc/src/csharp/Grpc.Core/
DChannel.cs155 …var deadlineTimespec = deadline.HasValue ? Timespec.FromDateTime(deadline.Value) : Timespec.InfFut… in TryWaitForStateChangedAsync()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs89 Assert.AreEqual(timestamp, Timestamp.FromDateTime(dateTime)); in AssertRoundtrip()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs732 …var list = new RepeatedField<Timestamp> { Timestamp.FromDateTime(new DateTime(2015, 10, 1, 12, 34,… in ToString_Timestamp()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs811 Timestamp timestamp = Timestamp.FromDateTime(parsed); in MergeTimestamp()
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs732 …var list = new RepeatedField<Timestamp> { Timestamp.FromDateTime(new DateTime(2015, 10, 1, 12, 34,… in ToString_Timestamp()