init(date:)
Creates and returns a text provider for displaying the specified time.
Declaration
convenience init(date: Date)Parameters
- date:
The date object containing the time to display. This parameter must not be
nil.
Return Value
A text provider initialized with the specified date.
Discussion
The text provider created by this method uses the default time zone information of the current user. The time value is formatted using the current locale information for the user.