Instance Property

description

A string representation of the date object.

Declaration

var description: String { get }

Discussion

The representation is useful for debugging only.

There are a number of options to acquire a formatted string for a date including: date formatters (see DateFormatter and Data Formatting Guide), and the NSDate methods description(with:), date(withCalendarFormat:timeZone:), and description(withCalendarFormat:timeZone:locale:)

See Also

Describing Dates

func description(with: Any?) -> String

Returns a string representation of the date using the given locale.

var customPlaygroundQuickLook: PlaygroundQuickLook

A custom playground Quick Look for this object.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software