toNSDateComponents

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

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 YearMonth.toNSDateComponents(includeCalendar: Boolean = false): <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 Date.toNSDateComponents(includeCalendar: Boolean = false): <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 Time.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <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 DateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>
fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean = false): <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