Foundation · IOS API REFERENCE
Date.FormatString.StringInterpolation
struct · iOS 15.0+ · SDK 27.1
struct StringInterpolation
The string interpolation type for building date format strings.
Members (21)
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationCyclicYear(cyclicYear: Date_FormatStyle_Symbol_CyclicYear): void
Swift declarationmutating func appendInterpolation(cyclicYear: Date.FormatStyle.Symbol.CyclicYear)
Appends a cyclic year symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationSecondFraction(secondFraction: Date_FormatStyle_Symbol_SecondFraction): void
Swift declarationmutating func appendInterpolation(secondFraction: Date.FormatStyle.Symbol.SecondFraction)
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationStandaloneMonth(standaloneMonth: Date_FormatStyle_Symbol_StandaloneMonth): void
Swift declarationmutating func appendInterpolation(standaloneMonth: Date.FormatStyle.Symbol.StandaloneMonth)
Appends a standalone month symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationStandaloneQuarter(standaloneQuarter: Date_FormatStyle_Symbol_StandaloneQuarter): void
Swift declarationmutating func appendInterpolation(standaloneQuarter: Date.FormatStyle.Symbol.StandaloneQuarter)
Appends a standalone quarter symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationStandaloneWeekday(standaloneWeekday: Date_FormatStyle_Symbol_StandaloneWeekday): void
Swift declarationmutating func appendInterpolation(standaloneWeekday: Date.FormatStyle.Symbol.StandaloneWeekday)
Appends a standalone weekday symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationYearForWeekOfYear(yearForWeekOfYear: Date_FormatStyle_Symbol_YearForWeekOfYear): void
Swift declarationmutating func appendInterpolation(yearForWeekOfYear: Date.FormatStyle.Symbol.YearForWeekOfYear)
Appends a year-for-week-of-year symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationDay(day: Date_FormatStyle_Symbol_Day): void
Swift declarationmutating func appendInterpolation(day: Date.FormatStyle.Symbol.Day)
Appends a day symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationEra(era: Date_FormatStyle_Symbol_Era): void
Swift declarationmutating func appendInterpolation(era: Date.FormatStyle.Symbol.Era)
Appends an era symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationHour(hour: Date_FormatStyle_Symbol_VerbatimHour): void
Swift declarationmutating func appendInterpolation(hour: Date.FormatStyle.Symbol.VerbatimHour)
Appends a verbatim hour symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationWeek(week: Date_FormatStyle_Symbol_Week): void
Swift declarationmutating func appendInterpolation(week: Date.FormatStyle.Symbol.Week)
Appends a week symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationYear(year: Date_FormatStyle_Symbol_Year): void
Swift declarationmutating func appendInterpolation(year: Date.FormatStyle.Symbol.Year)
Appends a year symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationMonth(month: Date_FormatStyle_Symbol_Month): void
Swift declarationmutating func appendInterpolation(month: Date.FormatStyle.Symbol.Month)
Appends a month symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationMinute(minute: Date_FormatStyle_Symbol_Minute): void
Swift declarationmutating func appendInterpolation(minute: Date.FormatStyle.Symbol.Minute)
Appends a minute symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationSecond(second: Date_FormatStyle_Symbol_Second): void
Swift declarationmutating func appendInterpolation(second: Date.FormatStyle.Symbol.Second)
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationQuarter(quarter: Date_FormatStyle_Symbol_Quarter): void
Swift declarationmutating func appendInterpolation(quarter: Date.FormatStyle.Symbol.Quarter)
Appends a quarter symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationWeekday(weekday: Date_FormatStyle_Symbol_Weekday): void
Swift declarationmutating func appendInterpolation(weekday: Date.FormatStyle.Symbol.Weekday)
Appends a weekday symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationTimeZone(timeZone: Date_FormatStyle_Symbol_TimeZone): void
Swift declarationmutating func appendInterpolation(timeZone: Date.FormatStyle.Symbol.TimeZone)
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationDayOfYear(dayOfYear: Date_FormatStyle_Symbol_DayOfYear): void
Swift declarationmutating func appendInterpolation(dayOfYear: Date.FormatStyle.Symbol.DayOfYear)
Appends a day-of-year symbol to the format string.
method · iOS 15.0+appendInterpolation
TypeScriptappendInterpolationDayPeriod(dayPeriod: Date_FormatStyle_Symbol_DayPeriod): void
Swift declarationmutating func appendInterpolation(dayPeriod: Date.FormatStyle.Symbol.DayPeriod)
Appends a day period symbol to the format string.
method · iOS 15.0+appendLiteral
TypeScriptappendLiteral(literal: string): void
Swift declarationmutating func appendLiteral(_ literal: String)
Appends a literal string segment to the format string.
init · iOS 15.0+init
TypeScriptstatic init(literalCapacity: number, interpolationCount: number): Date_FormatString_StringInterpolation
Swift declarationinit(literalCapacity: Int, interpolationCount: Int)
Creates a new string interpolation with the given capacities.
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →