Home
last modified time | relevance | path

Searched refs:FromDateTime (Results 1 – 9 of 9) 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.cs54 return Timestamp.FromDateTime(dateTime); in ToTimestamp()
/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/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/Collections/
DRepeatedFieldTest.cs646 …var list = new RepeatedField<Timestamp> { Timestamp.FromDateTime(new DateTime(2015, 10, 1, 12, 34,… in ToString_Timestamp()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonParser.cs805 Timestamp timestamp = Timestamp.FromDateTime(parsed); in MergeTimestamp()