Instance Property

calendarUnits

The calendar units to include in the formatted string

Declaration

var calendarUnits: NSCalendar.Unit { get set }

Discussion

For a list of supported units, see Date Format Options.

See Also

Getting the Date Information

var date: Date

The target date to use for calculations.

var relativeDateStyle: CLKRelativeDateStyle

The formatting style to use for the relative time value.