15 references to TimeFormat
aspire (15)
src\Shared\DateFormatStringsHelpers.cs (9)
15
private readonly record struct CultureDetailsKey(string LongTimePattern, string ShortDatePattern, string NumberDecimalSeparator,
TimeFormat
timeFormat);
53
private readonly record struct MediumDateKey(string LongDatePattern, string ShortTimePattern,
TimeFormat
TimeFormat, bool SpaceSeparated);
56
private static MillisecondFormatStrings GetDateFormatStrings(CultureInfo cultureInfo,
TimeFormat
timeFormat)
104
internal static string GetMediumDateShortTimePattern(CultureInfo cultureInfo,
TimeFormat
timeFormat)
123
private static string ApplyTimeFormat(string timePattern,
TimeFormat
timeFormat) => timeFormat switch
125
TimeFormat
.TwelveHour => ConvertTo12Hour(timePattern),
126
TimeFormat
.TwentyFourHour => ConvertTo24Hour(timePattern),
155
internal static string GetLongTimePattern(CultureInfo cultureInfo,
TimeFormat
timeFormat, MillisecondsDisplay millisecondsDisplay)
158
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);
98
private static
TimeFormat
GetResolvedTimeFormat(TimeProvider timeProvider)
105
return
TimeFormat
.System;