/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/ |
D | TimespecTest.cs | 134 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/ |
D | TimestampPartial.cs | 146 public static Timestamp FromDateTime(DateTime dateTime) in FromDateTime() method in Google.Protobuf.WellKnownTypes.Timestamp 170 return FromDateTime(dateTimeOffset.UtcDateTime); in FromDateTimeOffset()
|
D | TimeExtensions.cs | 50 return Timestamp.FromDateTime(dateTime); in ToTimestamp()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 1177 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 …]
|
D | time.h | 1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/webrtc/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 1174 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 …]
|
D | time.h | 1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/libtextclassifier/abseil-cpp/absl/time/ |
D | time_test.cc | 1177 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 …]
|
D | time.h | 1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/abseil-cpp/absl/time/ |
D | time_test.cc | 1174 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 …]
|
D | time.h | 1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/openscreen/third_party/abseil/src/absl/time/ |
D | time_test.cc | 1181 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 …]
|
D | time.h | 1174 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/angle/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 1181 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 …]
|
D | time.h | 1194 inline Time FromDateTime(int64_t year, int mon, int day, int hour, in FromDateTime() function
|
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/ |
D | Timespec.cs | 171 public static Timespec FromDateTime(DateTime dateTime) in FromDateTime() method
|
D | AsyncCall.cs | 504 …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/ |
D | TimestampTest.cs | 89 Assert.AreEqual(timestamp, Timestamp.FromDateTime(dateTime)); in AssertRoundtrip()
|
/external/grpc-grpc/src/csharp/Grpc.Core/ |
D | Channel.cs | 155 …var deadlineTimespec = deadline.HasValue ? Timespec.FromDateTime(deadline.Value) : Timespec.InfFut… in TryWaitForStateChangedAsync()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | TimestampTest.cs | 89 Assert.AreEqual(timestamp, Timestamp.FromDateTime(dateTime)); in AssertRoundtrip()
|
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 732 …var list = new RepeatedField<Timestamp> { Timestamp.FromDateTime(new DateTime(2015, 10, 1, 12, 34,… in ToString_Timestamp()
|
/external/protobuf/csharp/src/Google.Protobuf/ |
D | JsonParser.cs | 811 Timestamp timestamp = Timestamp.FromDateTime(parsed); in MergeTimestamp()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 732 …var list = new RepeatedField<Timestamp> { Timestamp.FromDateTime(new DateTime(2015, 10, 1, 12, 34,… in ToString_Timestamp()
|