One Logo Pool Ball
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

TypeScript
appendInterpolationCyclicYear(cyclicYear: Date_FormatStyle_Symbol_CyclicYear): void
Swift declaration
mutating func appendInterpolation(cyclicYear: Date.FormatStyle.Symbol.CyclicYear)

Appends a cyclic year symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationSecondFraction(secondFraction: Date_FormatStyle_Symbol_SecondFraction): void
Swift declaration
mutating func appendInterpolation(secondFraction: Date.FormatStyle.Symbol.SecondFraction)
method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationStandaloneMonth(standaloneMonth: Date_FormatStyle_Symbol_StandaloneMonth): void
Swift declaration
mutating func appendInterpolation(standaloneMonth: Date.FormatStyle.Symbol.StandaloneMonth)

Appends a standalone month symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationStandaloneQuarter(standaloneQuarter: Date_FormatStyle_Symbol_StandaloneQuarter): void
Swift declaration
mutating func appendInterpolation(standaloneQuarter: Date.FormatStyle.Symbol.StandaloneQuarter)

Appends a standalone quarter symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationStandaloneWeekday(standaloneWeekday: Date_FormatStyle_Symbol_StandaloneWeekday): void
Swift declaration
mutating func appendInterpolation(standaloneWeekday: Date.FormatStyle.Symbol.StandaloneWeekday)

Appends a standalone weekday symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationYearForWeekOfYear(yearForWeekOfYear: Date_FormatStyle_Symbol_YearForWeekOfYear): void
Swift declaration
mutating func appendInterpolation(yearForWeekOfYear: Date.FormatStyle.Symbol.YearForWeekOfYear)

Appends a year-for-week-of-year symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationDay(day: Date_FormatStyle_Symbol_Day): void
Swift declaration
mutating func appendInterpolation(day: Date.FormatStyle.Symbol.Day)

Appends a day symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationEra(era: Date_FormatStyle_Symbol_Era): void
Swift declaration
mutating func appendInterpolation(era: Date.FormatStyle.Symbol.Era)

Appends an era symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationHour(hour: Date_FormatStyle_Symbol_VerbatimHour): void
Swift declaration
mutating func appendInterpolation(hour: Date.FormatStyle.Symbol.VerbatimHour)

Appends a verbatim hour symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationWeek(week: Date_FormatStyle_Symbol_Week): void
Swift declaration
mutating func appendInterpolation(week: Date.FormatStyle.Symbol.Week)

Appends a week symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationYear(year: Date_FormatStyle_Symbol_Year): void
Swift declaration
mutating func appendInterpolation(year: Date.FormatStyle.Symbol.Year)

Appends a year symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationMonth(month: Date_FormatStyle_Symbol_Month): void
Swift declaration
mutating func appendInterpolation(month: Date.FormatStyle.Symbol.Month)

Appends a month symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationMinute(minute: Date_FormatStyle_Symbol_Minute): void
Swift declaration
mutating func appendInterpolation(minute: Date.FormatStyle.Symbol.Minute)

Appends a minute symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationSecond(second: Date_FormatStyle_Symbol_Second): void
Swift declaration
mutating func appendInterpolation(second: Date.FormatStyle.Symbol.Second)
method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationQuarter(quarter: Date_FormatStyle_Symbol_Quarter): void
Swift declaration
mutating func appendInterpolation(quarter: Date.FormatStyle.Symbol.Quarter)

Appends a quarter symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationWeekday(weekday: Date_FormatStyle_Symbol_Weekday): void
Swift declaration
mutating func appendInterpolation(weekday: Date.FormatStyle.Symbol.Weekday)

Appends a weekday symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationTimeZone(timeZone: Date_FormatStyle_Symbol_TimeZone): void
Swift declaration
mutating func appendInterpolation(timeZone: Date.FormatStyle.Symbol.TimeZone)
method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationDayOfYear(dayOfYear: Date_FormatStyle_Symbol_DayOfYear): void
Swift declaration
mutating func appendInterpolation(dayOfYear: Date.FormatStyle.Symbol.DayOfYear)

Appends a day-of-year symbol to the format string.

method · iOS 15.0+

appendInterpolation

TypeScript
appendInterpolationDayPeriod(dayPeriod: Date_FormatStyle_Symbol_DayPeriod): void
Swift declaration
mutating func appendInterpolation(dayPeriod: Date.FormatStyle.Symbol.DayPeriod)

Appends a day period symbol to the format string.

method · iOS 15.0+

appendLiteral

TypeScript
appendLiteral(literal: string): void
Swift declaration
mutating func appendLiteral(_ literal: String)

Appends a literal string segment to the format string.

init · iOS 15.0+

init

TypeScript
static init(literalCapacity: number, interpolationCount: number): Date_FormatString_StringInterpolation
Swift declaration
init(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 →