Instance Methodswift 6.0.3FoundationInternationalization->FoundationEssentials
locale(_:)
- iOS
- deprecated
- macOS
- deprecated
- tvOS
- deprecated
- watchOS
- deprecated
func locale(_ locale: Locale) -> Date.AttributedStyle
func locale(_ locale: Locale) -> Date.AttributedStyle
s20FoundationEssentials4DateV0A20InternationalizationE15AttributedStyleV6localeyAfA6LocaleVF
What are these?SDHA
import FoundationEssentials
import FoundationInternationalization
struct AttributedStyle
struct Date
Date
represents a single point in time.
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
init(from decoder: any Decoder) throws
func format(_ value: Date) -> AttributedString
Returns an attributed string with AttributeScopes.FoundationAttributes.DateFieldAttribute