Package io.islandtime.darwin

Various extensions specific to the Apple platform.

Functions

toIslandDate
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandDate(): Date

Converts this set of date components to an Island Time Date.

toIslandDateTime
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandDateTime(): DateTime

Converts this set of date components to an Island Time DateTime.

toIslandDateTimeAt
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandDateTimeAt(nsTimeZone: <ERROR CLASS>): <ERROR CLASS>

Converts this NSDate to an Island Time DateTime at the specified time zone.

fun <ERROR CLASS>.toIslandDateTimeAt(offset: UtcOffset): DateTime

Converts this NSDate to an Island Time DateTime at the specified UTC offset.

toIslandInstant
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandInstant(): Instant

Converts this NSDate to an Island Time Instant.

toIslandInstantInterval
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandInstantInterval(): InstantInterval

Converts this interval to an equivalent Island Time InstantInterval.

toIslandOffsetDateTime
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandOffsetDateTime(): Nothing

Converts this set of date components to an Island Time OffsetDateTime.

toIslandOffsetDateTimeAt
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandOffsetDateTimeAt(nsTimeZone: <ERROR CLASS>): OffsetDateTime

Converts this NSDate to an Island Time OffsetDateTime at the specified time zone.

fun <ERROR CLASS>.toIslandOffsetDateTimeAt(offset: UtcOffset): OffsetDateTime

Converts this NSDate to an Island Time OffsetDateTime at the specified offset.

toIslandOffsetDateTimeOrNull
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandOffsetDateTimeOrNull(): OffsetDateTime?

Converts this set of date components to an Island Time OffsetDateTime, or null if the timeZone property is absent.

toIslandTime
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandTime(): Time

Converts this set of date components to an Island Time Time.

toIslandTimeZone
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandTimeZone(): TimeZone

Converts this NSTimeZone` to an Island Time TimeZone with the same identifier.

toIslandUtcOffsetAt
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandUtcOffsetAt(date: <ERROR CLASS>): UtcOffset

Converts this NSTimeZone to an Island Time UtcOffset at the provided date.

toIslandZonedDateTime
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandZonedDateTime(): Nothing

Converts this set of date components to an Island Time ZonedDateTime.

toIslandZonedDateTimeAt
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandZonedDateTimeAt(nsTimeZone: <ERROR CLASS>): <ERROR CLASS>
fun <ERROR CLASS>.toIslandZonedDateTimeAt(zone: TimeZone): ZonedDateTime

Converts this NSDate to an Island Time ZonedDateTime at the specified time zone.

toIslandZonedDateTimeOrNull
Link copied to clipboard
darwin
fun <ERROR CLASS>.toIslandZonedDateTimeOrNull(): ZonedDateTime?

Converts this set of date components to an Island Time ZonedDateTime, or null if the timeZone property is absent.

toNSDate
Link copied to clipboard
darwin
fun <T> TimePoint<T>.toNSDate(): <ERROR CLASS>

Converts this time point to an NSDate.

toNSDateComponents
Link copied to clipboard
darwin
fun Date.toNSDateComponents(includeCalendar: Boolean = false): <ERROR CLASS>

Converts this date to an equivalent NSDateComponents object.

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.

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

Converts this time to an equivalent NSDateComponents object.

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

Converts this year to an equivalent NSDateComponents object.

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

Converts this year-month to an equivalent NSDateComponents object.

toNSDateInterval
Link copied to clipboard
darwin
fun <T : TimePoint<T>> TimePointInterval<T>.toNSDateInterval(): <ERROR CLASS>

Converts this interval to an equivalent NSDateInterval.

toNSDateIntervalOrNull
Link copied to clipboard
darwin
fun <T : TimePoint<T>> TimePointInterval<T>.toNSDateIntervalOrNull(): <ERROR CLASS>?

Converts this interval to an equivalent NSDateInterval, or null if the interval is unbounded.

toNSTimeInterval
Link copied to clipboard
darwin
fun Days.toNSTimeInterval(): <ERROR CLASS>
fun Duration.toNSTimeInterval(): <ERROR CLASS>
fun Hours.toNSTimeInterval(): <ERROR CLASS>
fun Microseconds.toNSTimeInterval(): <ERROR CLASS>
fun Milliseconds.toNSTimeInterval(): <ERROR CLASS>
fun Minutes.toNSTimeInterval(): <ERROR CLASS>
fun Nanoseconds.toNSTimeInterval(): <ERROR CLASS>
fun Seconds.toNSTimeInterval(): <ERROR CLASS>

Converts this duration to an equivalent NSTimeInterval.

toNSTimeZone
Link copied to clipboard
darwin
fun TimeZone.toNSTimeZone(): <ERROR CLASS>

Converts this time zone to an NSTimeZone.

fun UtcOffset.toNSTimeZone(): <ERROR CLASS>

Converts this offset into an equivalent NSTimeZone with a fixed UTC offset.

toNSTimeZoneOrNull
Link copied to clipboard
darwin
fun TimeZone.toNSTimeZoneOrNull(): <ERROR CLASS>?

Converts this time zone to an NSTimeZone, or null if the identifier isn't recognized as valid for an NSTimeZone.