description(with:)
Returns a string representation of the receiver using the given locale.
Declaration
func description(with locale: Locale?) -> StringParameters
- locale:
A
Locale. If you passnil,Dateformats the date in the same way as thedescriptionproperty.
Return Value
A string representation of the Date, using the given locale, or if the locale argument is nil, in the international format YYYY-MM-DD HH:MM:SS ±HHMM, where ±HHMM represents the time zone offset in hours and minutes from UTC (for example, “2001-03-24 10:45:32 +0600”).