toNSDateComponents

Converts this year to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun Year.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this year-month to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun YearMonth.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this date to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun Date.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun Time.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this date-time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun DateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun OffsetTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this date-time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this date-time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

includeCalendar

true if the resulting NSDateComponents should include the ISO-8601 calendar

fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>