Static Propertyswift 6.0.3FoundationInternationalization->FoundationEssentials
narrow
Narrow era name. For example, For example, “A”, “R”, “R”.
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
static var narrow: Date.FormatStyle.Symbol.Era { get }
Narrow era name. For example, For example, “A”, “R”, “R”.
static var narrow: Date.FormatStyle.Symbol.Era { get }
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV3EraV6narrowAJvpZ
What are these?29EV3
import FoundationEssentials
import FoundationInternationalization
struct Era
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct Symbol
static var abbreviated: Date.FormatStyle.Symbol.Era { get }
Abbreviated Era name. For example, “AD”, “Reiwa”, “令和”.
static let omitted: Date.FormatStyle.Symbol.Era
The option for not including the symbol in the formatted output.
static var wide: Date.FormatStyle.Symbol.Era { get }
Wide era name. For example, “Anno Domini”, “Reiwa”, “令和”.