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