Static Propertyswift 6.0.3FoundationInternationalization->FoundationEssentials
omitted
The option for not including the symbol in the formatted output.
- iOS
- 16.4+
- macOS
- 13.3+
- tvOS
- 16.4+
- watchOS
- 9.4+
static let omitted: Date.FormatStyle.Symbol.Hour
The option for not including the symbol in the formatted output.
static let omitted: Date.FormatStyle.Symbol.Hour
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV4HourV7omittedAJvpZ
What are these?5OGSA
import FoundationEssentials
import FoundationInternationalization
struct Hour
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct Symbol
static func conversationalDefaultDigits(amPM: Date.FormatStyle.Symbol.Hour.AMPMStyle) -> Date.FormatStyle.Symbol.Hour
Behaves like defaultDigits
: the preferred numeric hour format for the locale with minimum digits. May also use conversational period formats.
static func conversationalTwoDigits(amPM: Date.FormatStyle.Symbol.Hour.AMPMStyle) -> Date.FormatStyle.Symbol.Hour
Behaves like twoDigits
: two-digit hour format for the locale, zero padded if necessary. May also use conversational period formats.
static func defaultDigits(amPM: Date.FormatStyle.Symbol.Hour.AMPMStyle) -> Date.FormatStyle.Symbol.Hour
The preferred numeric hour format for the locale with minimum digits. Whether the period symbol (AM/PM) will be shown depends on the locale.
static func twoDigits(amPM: Date.FormatStyle.Symbol.Hour.AMPMStyle) -> Date.FormatStyle.Symbol.Hour
The preferred two-digit hour format for the locale, zero padded if necessary. Whether the period symbol (AM/PM) will be shown depends on the locale.
struct AMPMStyle
static var defaultDigitsNoAMPM: Date.FormatStyle.Symbol.Hour { get }
static var twoDigitsNoAMPM: Date.FormatStyle.Symbol.Hour { get }