Package io.islandtime.jvm

Various extensions specific to the Java platform.

Functions

asIslandClock
Link copied to clipboard
@JvmName(name = "toIslandClock")
fun Clock.asIslandClock(): Clock
Makes this clock compatible with Island Time's Clock interface.
now
Link copied to clipboard
fun Date.Companion.now(clock: Clock): Date
Gets the current Date from the provided clock.
fun DateTime.Companion.now(clock: Clock): DateTime
Gets the current DateTime from the provided clock.
fun Instant.Companion.now(clock: Clock): Instant
Gets the current Instant from the provided clock.
fun OffsetDateTime.Companion.now(clock: Clock): OffsetDateTime
Gets the current OffsetDateTime from the provided clock.
fun OffsetTime.Companion.now(clock: Clock): OffsetTime
Gets the current OffsetTime from the provided clock.
fun Time.Companion.now(clock: Clock): Time
Gets the current Time from the provided clock.
fun Year.Companion.now(clock: Clock): Year
Gets the current Year from the provided clock.
fun YearMonth.Companion.now(clock: Clock): YearMonth
Gets the current YearMonth from the provided clock.
fun ZonedDateTime.Companion.now(clock: Clock): ZonedDateTime
Gets the current ZonedDateTime from the provided clock.
toIslandDate
Link copied to clipboard
fun LocalDate.toIslandDate(): Date
Converts this date to an equivalent Island Time Date.
toIslandDateTime
Link copied to clipboard
fun LocalDateTime.toIslandDateTime(): DateTime
Converts this date-time to an equivalent Island Time DateTime.
toIslandDuration
Link copied to clipboard
fun Duration.toIslandDuration(): Duration
Converts this duration to an equivalent Island Time Duration.
toIslandInstant
Link copied to clipboard
fun Instant.toIslandInstant(): Instant
Converts this instant to an equivalent Island Time Instant.
toIslandOffsetDateTime
Link copied to clipboard
fun OffsetDateTime.toIslandOffsetDateTime(): OffsetDateTime
Converts this date-time to an equivalent Island Time OffsetDateTime.
toIslandOffsetTime
Link copied to clipboard
fun OffsetTime.toIslandOffsetTime(): OffsetTime
Converts this time to an equivalent Island Time OffsetTime.
toIslandPeriod
Link copied to clipboard
fun Period.toIslandPeriod(): Period
Converts this period to an equivalent Island Time Period.
toIslandTime
Link copied to clipboard
fun LocalTime.toIslandTime(): Time
Converts this time to an equivalent Island Time Time.
toIslandTimeZone
Link copied to clipboard
fun ZoneId.toIslandTimeZone(): TimeZone
Converts this time zone to an equivalent Island Time TimeZone.
toIslandUtcOffset
Link copied to clipboard
fun ZoneOffset.toIslandUtcOffset(): UtcOffset
Converts this UTC offset to an equivalent Island Time UtcOffset.
toIslandYear
Link copied to clipboard
fun Year.toIslandYear(): Year
Converts this year to an equivalent Island Time Year.
toIslandYearMonth
Link copied to clipboard
fun YearMonth.toIslandYearMonth(): YearMonth
Converts this year-month to an equivalent Island Time YearMonth.
toIslandZonedDateTime
Link copied to clipboard
fun ZonedDateTime.toIslandZonedDateTime(): ZonedDateTime
Converts this date-time to an equivalent Island Time ZonedDateTime.
toJavaDuration
Link copied to clipboard
fun Duration.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntDays.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntHours.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntMicroseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntMilliseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntMinutes.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntNanoseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun IntSeconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongDays.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongHours.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongMicroseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongMilliseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongMinutes.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongNanoseconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
fun LongSeconds.toJavaDuration(): Duration
Converts this duration to an equivalent Java Duration.
toJavaInstant
Link copied to clipboard
fun Instant.toJavaInstant(): Instant
Converts this instant to an equivalent Java Instant.
toJavaLocalDate
Link copied to clipboard
fun Date.toJavaLocalDate(): LocalDate
Converts this date to an equivalent Java LocalDate.
toJavaLocalDateTime
Link copied to clipboard
fun DateTime.toJavaLocalDateTime(): LocalDateTime
Converts this date-time to an equivalent Java LocalDateTime.
toJavaLocalTime
Link copied to clipboard
fun Time.toJavaLocalTime(): LocalTime
Converts this time to an equivalent Java LocalTime.
toJavaOffsetDateTime
Link copied to clipboard
fun OffsetDateTime.toJavaOffsetDateTime(): OffsetDateTime
Converts this date-time to an equivalent Java OffsetDateTime.
toJavaOffsetTime
Link copied to clipboard
fun OffsetTime.toJavaOffsetTime(): OffsetTime
Converts this time to an equivalent Java OffsetTime.
toJavaPeriod
Link copied to clipboard
fun IntCenturies.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun IntDays.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun IntDecades.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun IntMonths.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun IntWeeks.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun IntYears.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongCenturies.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongDays.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongDecades.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongMonths.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongWeeks.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun LongYears.toJavaPeriod(): Period
Converts this duration to an equivalent Java Period.
fun Period.toJavaPeriod(): Period
Converts this period to an equivalent Java Period.
toJavaYear
Link copied to clipboard
fun Year.toJavaYear(): Year
Converts this year to an equivalent Java Year.
toJavaYearMonth
Link copied to clipboard
fun YearMonth.toJavaYearMonth(): YearMonth
Converts this year-month to an equivalent Java YearMonth.
toJavaZonedDateTime
Link copied to clipboard
fun ZonedDateTime.toJavaZonedDateTime(): ZonedDateTime
Converts this date-time to an equivalent Java ZonedDateTime.
toJavaZoneId
Link copied to clipboard
fun TimeZone.toJavaZoneId(): ZoneId
Converts this time zone to an equivalent Java ZoneId.
toJavaZoneOffset
Link copied to clipboard
fun UtcOffset.toJavaZoneOffset(): ZoneOffset
Converts this UTC offset to an equivalent Java ZoneOffset.