subscript(dynamicMember:)
- iOS
- 16.4+
- macOS
- 13.3+
- tvOS
- 16.4+
- watchOS
- 9.4+
subscript<T>(dynamicMember key: WritableKeyPath<Date.FormatStyle, T>) -> T { get set }
subscript<T>(dynamicMember key: WritableKeyPath<Date.FormatStyle, T>) -> T { get set }
s20FoundationEssentials4DateV0A20InternationalizationE11FormatStyleV10AttributedV13dynamicMemberxs15WritableKeyPathCyAFxG_tcluip
What are these?33SM1
import FoundationEssentials
import FoundationInternationalization
@dynamicMemberLookup struct Attributed
The type preserving attributed variant of this style.
struct Date
Date
represents a single point in time.
struct FormatStyle
Strategies for formatting a Date
.
class WritableKeyPath<Root, Value>
A key path that supports reading from and writing to the resulting value.
init(from decoder: any Decoder) throws
subscript<T>(dynamicMember key: KeyPath<Date.FormatStyle, T>) -> T { get }
func day(_ format: Date.FormatStyle.Symbol.Day = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the day of the month in the format.
func dayOfYear(_ format: Date.FormatStyle.Symbol.DayOfYear = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the day of the year in the format.
func discreteInput(after input: Date) -> Date?
func discreteInput(before input: Date) -> Date?
func era(_ format: Date.FormatStyle.Symbol.Era = .abbreviated) -> Date.FormatStyle.Attributed
Change the representation of the era in the format.
func format(_ value: Date) -> AttributedString
func hour(_ format: Date.FormatStyle.Symbol.Hour = .defaultDigits(amPM: .abbreviated)) -> Date.FormatStyle.Attributed
Change the representation of the hour in the format.
func input(after input: Date) -> Date?
func input(before input: Date) -> Date?
func locale(_ locale: Locale) -> Date.FormatStyle.Attributed
func minute(_ format: Date.FormatStyle.Symbol.Minute = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the minute in the format.
func month(_ format: Date.FormatStyle.Symbol.Month = .abbreviated) -> Date.FormatStyle.Attributed
Change the representation of the month in the format.
func quarter(_ format: Date.FormatStyle.Symbol.Quarter = .abbreviated) -> Date.FormatStyle.Attributed
Change the representation of the quarter in the format.
func second(_ format: Date.FormatStyle.Symbol.Second = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the second in the format.
func secondFraction(_ format: Date.FormatStyle.Symbol.SecondFraction) -> Date.FormatStyle.Attributed
Change the representation of the second fraction in the format.
func timeZone(_ format: Date.FormatStyle.Symbol.TimeZone = .specificName(.short)) -> Date.FormatStyle.Attributed
Change the representation of the time zone in the format.
func week(_ format: Date.FormatStyle.Symbol.Week = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the week in the format.
func weekday(_ format: Date.FormatStyle.Symbol.Weekday = .abbreviated) -> Date.FormatStyle.Attributed
Change the representation of the weekday in the format.
func year(_ format: Date.FormatStyle.Symbol.Year = .defaultDigits) -> Date.FormatStyle.Attributed
Change the representation of the year in the format.