11 references to TimeFormat
aspire (11)
src\Shared\DateFormatStringsHelpers.cs (6)
15
private readonly record struct CultureDetailsKey(string LongTimePattern, string ShortDatePattern, string NumberDecimalSeparator,
TimeFormat
timeFormat);
38
private static MillisecondFormatStrings GetDateFormatStrings(CultureInfo cultureInfo,
TimeFormat
timeFormat)
72
TimeFormat
.TwelveHour => ConvertTo12Hour(longTimePattern),
73
TimeFormat
.TwentyFourHour => ConvertTo24Hour(longTimePattern),
111
internal static string GetLongTimePattern(CultureInfo cultureInfo,
TimeFormat
timeFormat, MillisecondsDisplay millisecondsDisplay)
114
internal static string GetShortDateLongTimePattern(CultureInfo cultureInfo,
TimeFormat
timeFormat, MillisecondsDisplay millisecondsDisplay)
src\Shared\FormatHelpers.cs (5)
25
TimeFormat
ResolvedTimeFormat { get; }
48
var
timeFormat = GetResolvedTimeFormat(timeProvider);
58
var
timeFormat = GetResolvedTimeFormat(timeProvider);
64
private static
TimeFormat
GetResolvedTimeFormat(TimeProvider timeProvider)
71
return
TimeFormat
.System;