11 references to ToDateTime
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (2)
1325value.ToDateTime().GetTimePrecise(out int hour, out int minute, out int second, out int fraction); 1353value.ToDateTime().GetTime(out int hour, out int minute, out int second);
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (8)
317ToDateTime().GetTime(out hour, out minute, out second); 338ToDateTime().GetTime(out hour, out minute, out second, out millisecond); 891public override string ToString() => DateTimeFormat.Format(ToDateTime(), "t", null); 906public string ToString(IFormatProvider? provider) => DateTimeFormat.Format(ToDateTime(), "t", provider); 938't' => DateTimeFormat.Format(ToDateTime(), format, provider), 945return DateTimeFormat.Format(ToDateTime(), format, provider); 982return DateTimeFormat.TryFormat(ToDateTime(), destination, out written, format, provider); 995return DateTimeFormat.TryFormat(ToDateTime(), destination, out written, format, provider);
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.StringSerializer.cs (1)
538DateTime timeOfDay = TimeOnly.FromDateTime(GetNextDateTimeValue(TimeOfDayFormat)).ToDateTime();