init(date:timeZone:)
Creates and returns a text provider for displaying the specified time.
Declaration
convenience init(date: Date, timeZone: TimeZone?)Parameters
- date:
The date object containing the time to display. This parameter must not be
nil. - timeZone:
The time zone to use when formatting the date. If you specify
nil, the text provider uses the default time zone currently associated with the user.
Return Value
A text provider initialized with the specified date and time zone value.