Package io.islandtime.jvm¶
jvm
Various extensions specific to the Java platform.
Functions¶
Name | Summary |
---|---|
asIslandClock | jvm @JvmName(name = "toIslandClock") Makes this clock compatible with Island Time's Clock interface. |
now | jvm fun Date.Companion.now(clock: Clock): Date Gets the current Date from the provided clock. jvm fun DateTime.Companion.now(clock: Clock): DateTime Gets the current DateTime from the provided clock. jvm fun Instant.Companion.now(clock: Clock): Instant Gets the current Instant from the provided clock. jvm fun OffsetDateTime.Companion.now(clock: Clock): OffsetDateTime Gets the current OffsetDateTime from the provided clock. jvm fun OffsetTime.Companion.now(clock: Clock): OffsetTime Gets the current OffsetTime from the provided clock. jvm fun Time.Companion.now(clock: Clock): Time Gets the current Time from the provided clock. jvm fun Year.Companion.now(clock: Clock): Year Gets the current Year from the provided clock. jvm fun YearMonth.Companion.now(clock: Clock): YearMonth Gets the current YearMonth from the provided clock. jvm fun ZonedDateTime.Companion.now(clock: Clock): ZonedDateTime Gets the current ZonedDateTime from the provided clock. |
toIslandDate | jvm fun LocalDate.toIslandDate(): Date Converts this date to an equivalent Island Time Date. |
toIslandDateTime | jvm fun LocalDateTime.toIslandDateTime(): DateTime Converts this date-time to an equivalent Island Time DateTime. |
toIslandDuration | jvm fun Duration.toIslandDuration(): Duration Converts this duration to an equivalent Island Time Duration. |
toIslandInstant | jvm fun Instant.toIslandInstant(): Instant Converts this instant to an equivalent Island Time Instant. |
toIslandOffsetDateTime | jvm fun OffsetDateTime.toIslandOffsetDateTime(): OffsetDateTime Converts this date-time to an equivalent Island Time OffsetDateTime. |
toIslandOffsetTime | jvm fun OffsetTime.toIslandOffsetTime(): OffsetTime Converts this time to an equivalent Island Time OffsetTime. |
toIslandPeriod | jvm fun Period.toIslandPeriod(): Period Converts this period to an equivalent Island Time Period. |
toIslandTime | jvm fun LocalTime.toIslandTime(): Time Converts this time to an equivalent Island Time Time. |
toIslandTimeZone | jvm fun ZoneId.toIslandTimeZone(): TimeZone Converts this time zone to an equivalent Island Time TimeZone. |
toIslandUtcOffset | jvm fun ZoneOffset.toIslandUtcOffset(): UtcOffset Converts this UTC offset to an equivalent Island Time UtcOffset. |
toIslandYear | jvm fun Year.toIslandYear(): Year Converts this year to an equivalent Island Time Year. |
toIslandYearMonth | jvm fun YearMonth.toIslandYearMonth(): YearMonth Converts this year-month to an equivalent Island Time YearMonth. |
toIslandZonedDateTime | jvm fun ZonedDateTime.toIslandZonedDateTime(): ZonedDateTime Converts this date-time to an equivalent Island Time ZonedDateTime. |
toJavaDuration | jvm fun Days.toJavaDuration(): Duration fun Duration.toJavaDuration(): Duration fun Hours.toJavaDuration(): Duration fun Microseconds.toJavaDuration(): Duration fun Milliseconds.toJavaDuration(): Duration fun Minutes.toJavaDuration(): Duration fun Nanoseconds.toJavaDuration(): Duration fun Seconds.toJavaDuration(): Duration Converts this duration to an equivalent Java Duration . |
toJavaInstant | jvm fun Instant.toJavaInstant(): Instant Converts this instant to an equivalent Java Instant . |
toJavaLocalDate | jvm fun Date.toJavaLocalDate(): LocalDate Converts this date to an equivalent Java LocalDate . |
toJavaLocalDateTime | jvm fun DateTime.toJavaLocalDateTime(): LocalDateTime Converts this date-time to an equivalent Java LocalDateTime . |
toJavaLocalTime | jvm fun Time.toJavaLocalTime(): LocalTime Converts this time to an equivalent Java LocalTime . |
toJavaOffsetDateTime | jvm fun OffsetDateTime.toJavaOffsetDateTime(): OffsetDateTime Converts this date-time to an equivalent Java OffsetDateTime . |
toJavaOffsetTime | jvm fun OffsetTime.toJavaOffsetTime(): OffsetTime Converts this time to an equivalent Java OffsetTime . |
toJavaPeriod | jvm fun Centuries.toJavaPeriod(): Period fun Days.toJavaPeriod(): Period fun Decades.toJavaPeriod(): Period fun Months.toJavaPeriod(): Period fun Weeks.toJavaPeriod(): Period fun Years.toJavaPeriod(): Period Converts this duration to an equivalent Java Period .jvm fun Period.toJavaPeriod(): Period Converts this period to an equivalent Java Period . |
toJavaYear | jvm fun Year.toJavaYear(): Year Converts this year to an equivalent Java Year . |
toJavaYearMonth | jvm fun YearMonth.toJavaYearMonth(): YearMonth Converts this year-month to an equivalent Java YearMonth . |
toJavaZonedDateTime | jvm fun ZonedDateTime.toJavaZonedDateTime(): ZonedDateTime Converts this date-time to an equivalent Java ZonedDateTime . |
toJavaZoneId | jvm fun TimeZone.toJavaZoneId(): ZoneId Converts this time zone to an equivalent Java ZoneId . |
toJavaZoneOffset | jvm fun UtcOffset.toJavaZoneOffset(): ZoneOffset Converts this UTC offset to an equivalent Java ZoneOffset . |