Structure
Date.FormatStyle.Symbol.DayPeriod
struct DayPeriod
Overview
The type Date.FormatStyle.Symbol.DayPeriod includes static factory methods that create custom Date.FormatStyle.Symbol.DayPeriod objects.
Factory variable |
Description |
|---|---|
Conversational abbreviated period. For example, |
|
Abbreviated period. For example, |
|
Abbreviated period including designations for noon and midnight. For example, |
The day period format style may be uppercase or lowercase depending on the locale and other options.
For more information about formatting dates, see the Date.FormatStyle.
Topics
Type Properties
static let omitted: Date.FormatStyle.Symbol.DayPeriodThe option for not including the symbol in the formatted output.
Type Methods
static func conversational(Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriodConversational day period. For example, Abbreviated:at night,nachm.,ip.Wide:at night,nachmittags,iltapäivällä. Narrow:at night,nachm.,iltap.static func standard(Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriodStandard day period. For example, Abbreviated:12 am.Wide:12 amNarrow:12a.static func with12s(Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriodDay period including designations for noon and midnight. For example, Abbreviated:midWide:midnightNarrow:md.
Enumerations
enum WidthA type representing the width of a day period in a format style.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype