Package io.islandtime.darwin

Various extensions specific to the Apple platform.

Functions

toIslandDate
Link copied to clipboard
darwin

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

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

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

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

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

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

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

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

Converts this NSDate to an Island Time Instant.

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

Converts this interval to an equivalent Island Time InstantInterval.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Converts this time point to an NSDate.

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

Converts this year to an equivalent NSDateComponents object.

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

Converts this year-month to an equivalent NSDateComponents object.

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

Converts this date to an equivalent NSDateComponents object.

fun Date.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>

Converts this time to an equivalent NSDateComponents object.

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

Converts this date-time to an equivalent NSDateComponents object.

fun DateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>
fun OffsetDateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>
fun ZonedDateTime.toNSDateComponents(includeCalendar: Boolean): <ERROR CLASS>
toNSDateInterval
Link copied to clipboard
darwin

Converts this interval to an equivalent NSDateInterval.

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

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

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

Converts this duration to an equivalent NSTimeInterval.

fun Duration.toNSTimeInterval(): <ERROR CLASS>
fun IntDays.toNSTimeInterval(): <ERROR CLASS>
fun LongDays.toNSTimeInterval(): <ERROR CLASS>
fun IntHours.toNSTimeInterval(): <ERROR CLASS>
fun LongHours.toNSTimeInterval(): <ERROR CLASS>
fun IntMinutes.toNSTimeInterval(): <ERROR CLASS>
fun LongMinutes.toNSTimeInterval(): <ERROR CLASS>
fun IntSeconds.toNSTimeInterval(): <ERROR CLASS>
fun LongSeconds.toNSTimeInterval(): <ERROR CLASS>
fun IntMilliseconds.toNSTimeInterval(): <ERROR CLASS>
fun LongMilliseconds.toNSTimeInterval(): <ERROR CLASS>
fun IntMicroseconds.toNSTimeInterval(): <ERROR CLASS>
fun LongMicroseconds.toNSTimeInterval(): <ERROR CLASS>
fun IntNanoseconds.toNSTimeInterval(): <ERROR CLASS>
fun LongNanoseconds.toNSTimeInterval(): <ERROR CLASS>
toNSTimeZone
Link copied to clipboard
darwin

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

Note that NSTimeZonewill round the totalSeconds value to the nearest minute.

fun UtcOffset.toNSTimeZone(): <ERROR CLASS>

Converts this time zone to an NSTimeZone.

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

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

fun TimeZone.toNSTimeZoneOrNull(): <ERROR CLASS>?