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
s20FoundationEssentials4DateV0A20InternationalizationE19RelativeFormatStyleV05UnitsG0V4fromAHs7Decoder_p_tKcfc
What are these?7Q9JI
import FoundationEssentials
import FoundationInternationalization
struct UnitsStyle
struct Date
Date
represents a single point in time.
struct RelativeFormatStyle
protocol Decoder
A type that can decode values from a native format into in-memory representations.
static var abbreviated: Date.RelativeFormatStyle.UnitsStyle { get }
“2 mo. ago”, “next Wed.”
static var narrow: Date.RelativeFormatStyle.UnitsStyle { get }
“2 mo. ago”, “next W”
static var spellOut: Date.RelativeFormatStyle.UnitsStyle { get }
“two months ago”, “next Wednesday”
static var wide: Date.RelativeFormatStyle.UnitsStyle { get }
“2 months ago”, “next Wednesday”