15 references to TimeFormat
aspire (15)
src\Shared\DateFormatStringsHelpers.cs (9)
15private readonly record struct CultureDetailsKey(string LongTimePattern, string ShortDatePattern, string NumberDecimalSeparator, TimeFormat timeFormat); 53private readonly record struct MediumDateKey(string LongDatePattern, string ShortTimePattern, TimeFormat TimeFormat, bool SpaceSeparated); 56private static MillisecondFormatStrings GetDateFormatStrings(CultureInfo cultureInfo, TimeFormat timeFormat) 104internal static string GetMediumDateShortTimePattern(CultureInfo cultureInfo, TimeFormat timeFormat) 123private static string ApplyTimeFormat(string timePattern, TimeFormat timeFormat) => timeFormat switch 125TimeFormat.TwelveHour => ConvertTo12Hour(timePattern), 126TimeFormat.TwentyFourHour => ConvertTo24Hour(timePattern), 155internal static string GetLongTimePattern(CultureInfo cultureInfo, TimeFormat timeFormat, MillisecondsDisplay millisecondsDisplay) 158internal static string GetShortDateLongTimePattern(CultureInfo cultureInfo, TimeFormat timeFormat, MillisecondsDisplay millisecondsDisplay)
src\Shared\FormatHelpers.cs (6)
25TimeFormat ResolvedTimeFormat { get; } 48var timeFormat = GetResolvedTimeFormat(timeProvider); 61var timeFormat = GetResolvedTimeFormat(timeProvider); 73var timeFormat = GetResolvedTimeFormat(timeProvider); 98private static TimeFormat GetResolvedTimeFormat(TimeProvider timeProvider) 105return TimeFormat.System;