//core/io.islandtime.darwin/toNSDateComponents
toNSDateComponents¶
darwin
fun Year.toNSDateComponents(includeCalendar: Boolean = false): <ERROR 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>
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>
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>
fun OffsetTime.toNSDateComponents(includeCalendar: Boolean = false): <ERROR 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>
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¶
darwin
includeCalendar | true if the resulting NSDateComponents should include the ISO-8601 calendar |