12 references to TimeFormat
aspire (12)
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 (6)
25
TimeFormat
ResolvedTimeFormat { get; }
48
var
timeFormat = GetResolvedTimeFormat(timeProvider);
61
var
timeFormat = GetResolvedTimeFormat(timeProvider);
73
var
timeFormat = GetResolvedTimeFormat(timeProvider);
78
private static
TimeFormat
GetResolvedTimeFormat(TimeProvider timeProvider)
85
return
TimeFormat
.System;