dateComponents(_:from:)
Returns all the date components of a date, using the calendar time zone.
Declaration
func dateComponents(_ components: Set<Calendar.Component>, from date: Date) -> DateComponentsParameters
- components:
The components to return.
- date:
The
Dateto use.
Return Value
The date components of the specified date.