fixed(format:timeZone:locale:)
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
static func fixed(format: Date.FormatString, timeZone: TimeZone, locale: Locale? = nil) -> Self where Self == Date.ParseStrategy
static func fixed(format: Date.FormatString, timeZone: TimeZone, locale: Locale? = nil) -> Self where Self == Date.ParseStrategy
s20FoundationEssentials13ParseStrategyP0A20InternationalizationE5fixed6format8timeZone6localeAA4DateVADEABVAjDE12FormatStringV_AA04TimeI0VAA6LocaleVSgtAKRszrlFZ
What are these?5P6EN
import FoundationEssentials
import FoundationInternationalization
protocol ParseStrategy : Decodable, Encodable, Hashable
A type that can parse a representation of a given data type.
struct Date
Date
represents a single point in time.
struct FormatString
struct TimeZone
TimeZone
defines the behavior of a time zone. Time zone values represent geopolitical regions. Consequently, these values have names for these regions. Time zone values also represent a temporal offset, either plus or minus, from Greenwich Mean Time (GMT) and an abbreviation (such as PST for Pacific Standard 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.
struct ParseStrategy
Options for parsing string representations of dates to create a Date
instance.