Skip to content

//core/io.islandtime.darwin/toNSDateComponents

toNSDateComponents

darwin

fun Year.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

Converts this year to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

darwin

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

darwin

fun YearMonth.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

Converts this year-month to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

darwin

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

darwin

fun Date.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

Converts this date to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

darwin

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

darwin

fun Time.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

Converts this time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

darwin

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

darwin

fun DateTime.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean = false): <Error class: unknown class>

Converts this date-time to an equivalent NSDateComponents object.

Return

an equivalent NSDateComponents object

Parameters

darwin

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