init(from:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
init(from decoder: any Decoder) throws
init(from decoder: any Decoder) throws
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV6SymbolV12VerbatimHourV5ClockV4fromALs7Decoder_p_tKcfc
What are these?QSAU
import FoundationEssentials
import FoundationInternationalization
struct Clock
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
struct Symbol
struct VerbatimHour
protocol Decoder
A type that can decode values from a native format into in-memory representations.
static let twelveHour: Date.FormatStyle.Symbol.VerbatimHour.Clock
In a 12-hour clock system, the 24-hour day is divided into two periods, a.m. and p.m, and each period consists of 12 hours.
static let twentyFourHour: Date.FormatStyle.Symbol.VerbatimHour.Clock
In a 24-hour clock system, the day runs from midnight to midnight, dividing into 24 hours.