DayPeriod
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
struct DayPeriod
struct DayPeriod
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV9DayPeriodV
What are these?LYOV
import FoundationInternationalization
import FoundationEssentials
struct Symbol
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct CyclicYear
struct Day
struct DayOfYear
struct Era
struct Hour
struct Minute
struct Month
struct Quarter
struct Second
struct SecondFraction
struct StandaloneMonth
struct StandaloneQuarter
struct StandaloneWeekday
struct TimeZone
struct VerbatimHour
struct Week
struct Weekday
struct Year
struct YearForWeekOfYear
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
static let omitted: Date.FormatStyle.Symbol.DayPeriod
The option for not including the symbol in the formatted output.
static func conversational(_ width: Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriod
Conversational day period. For example, Abbreviated: at night
, nachm.
, ip.
Wide: at night
, nachmittags
, iltapäivällä
. Narrow: at night
, nachm.
, iltap
.
static func standard(_ width: Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriod
Standard day period. For example, Abbreviated: 12 am.
Wide: 12 am
Narrow: 12a
.
static func with12s(_ width: Date.FormatStyle.Symbol.DayPeriod.Width) -> Date.FormatStyle.Symbol.DayPeriod
Day period including designations for noon and midnight. For example, Abbreviated: mid
Wide: midnight
Narrow: md
.
enum Width
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.