10 references to FromDateTime
Microsoft.AspNetCore.Components (2)
BindConverter.cs (2)
1549
value = TimeOnly.
FromDateTime
(dateTime);
1567
value = TimeOnly.
FromDateTime
(dateTime);
Microsoft.AspNetCore.Components.Tests (3)
BindConverterTest.cs (2)
217
var value = TimeOnly.
FromDateTime
(DateTime.Now);
231
var value = TimeOnly.
FromDateTime
(DateTime.Now);
RenderTreeDiffBuilderTest.cs (1)
1740
var timeOnlyWillNotChange = TimeOnly.
FromDateTime
(dateTimeWillNotChange);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1900
time = TimeOnly.
FromDateTime
(this);
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
631
result =
FromDateTime
(dtResult.parsedDate);
697
result =
FromDateTime
(dtResult.parsedDate);
764
result =
FromDateTime
(dtResult.parsedDate);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
538
DateTime timeOfDay = TimeOnly.
FromDateTime
(GetNextDateTimeValue(TimeOfDayFormat)).ToDateTime();