core / io.islandtime.darwin / toNSDateComponents

toNSDateComponents

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Year.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time Year to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun YearMonth.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time YearMonth to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Date.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time Date to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun Time.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time Time to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun DateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time DateTime to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time OffsetTime to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time OffsetDateTime to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Convert an Island Time ZonedDateTime to an equivalent NSDateComponents object.

Parameters

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

Return
an equivalent NSDateComponents object