Package io. islandtime
Date-time primitives and core concepts, including classes such as Date, Time, Instant, and ZonedDateTime.
Types
DateTimeException
Link copied to clipboard
open class DateTimeException(message: String?, cause: Throwable?) : Exception
Content copied to clipboard
IslandTime
Link copied to clipboard
OffsetConversionStrategy
Link copied to clipboard
OffsetDateTime
Link copied to clipboard
class OffsetDateTime(dateTime: DateTime, offset: UtcOffset) : TimePoint<OffsetDateTime>
Content copied to clipboard
OffsetTime
Link copied to clipboard
PlatformInstant
Link copied to clipboard
class PlatformInstant
Content copied to clipboard
TimeZone
Link copied to clipboard
UtcOffset
Link copied to clipboard
inline class UtcOffset(totalSeconds: IntSeconds) : Comparable<UtcOffset>
Content copied to clipboard
Year
Link copied to clipboard
ZonedDateTime
Link copied to clipboard
Functions
asTimeZone
Link copied to clipboard
asUtcOffset
Link copied to clipboard
asZonedDateTime
Link copied to clipboard
at
Link copied to clipboard
endOfDayAt
Link copied to clipboard
The ZonedDateTime at the last representable instant of the day in zone, taking into account any daylight savings transitions.
endOfWeek
Link copied to clipboard
fromWeekDate
Link copied to clipboard
fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, settings: WeekSettings): Date
Content copied to clipboard
fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, locale: Locale): Date
Content copied to clipboard
Creates a Date from a week date representation using the week definition associated with the provided locale.
Instant
Link copied to clipboard
Creates the Instant represented by a number of milliseconds relative to the Unix epoch of 1970-01-01T00:00Z.
Creates the Instant represented by a number of seconds relative to the Unix epoch of 1970-01-01T00:00Z.
fun Instant(secondsSinceUnixEpoch: LongSeconds, nanosecondAdjustment: IntNanoseconds): Instant
Content copied to clipboard
Creates the Instant represented by a number of seconds and additional nanoseconds relative to the Unix epoch of 1970-01-01T00:00Z.
fun Instant(secondsSinceUnixEpoch: LongSeconds, nanosecondAdjustment: LongNanoseconds): Instant
Content copied to clipboard
Creates the Instant represented by a number of seconds and additional nanoseconds relative to the Unix epoch of 1970-01-01T00:00Z.
next
Link copied to clipboard
nextOrSame
Link copied to clipboard
previous
Link copied to clipboard
previousOrSame
Link copied to clipboard
roundedDownTo
Link copied to clipboard
roundedDownToNearest
Link copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntHours): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntMicroseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntMilliseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntMinutes): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntNanoseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedDownToNearest(increment: IntSeconds): OffsetDateTime
Content copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntMicroseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntMilliseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedDownToNearest(increment: IntNanoseconds): OffsetTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntHours): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntMicroseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntMilliseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntMinutes): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntNanoseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedDownToNearest(increment: IntSeconds): ZonedDateTime
Content copied to clipboard
roundedTo
Link copied to clipboard
roundedToNearest
Link copied to clipboard
fun OffsetDateTime.roundedToNearest(increment: IntMicroseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedToNearest(increment: IntMilliseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedToNearest(increment: IntMinutes): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedToNearest(increment: IntNanoseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedToNearest(increment: IntSeconds): OffsetDateTime
Content copied to clipboard
fun ZonedDateTime.roundedToNearest(increment: IntMicroseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedToNearest(increment: IntMilliseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedToNearest(increment: IntNanoseconds): ZonedDateTime
Content copied to clipboard
roundedUpTo
Link copied to clipboard
roundedUpToNearest
Link copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntHours): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntMicroseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntMilliseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntMinutes): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntNanoseconds): OffsetDateTime
Content copied to clipboard
fun OffsetDateTime.roundedUpToNearest(increment: IntSeconds): OffsetDateTime
Content copied to clipboard
fun OffsetTime.roundedUpToNearest(increment: IntMicroseconds): OffsetTime
Content copied to clipboard
fun OffsetTime.roundedUpToNearest(increment: IntMilliseconds): OffsetTime
Content copied to clipboard
fun ZonedDateTime.roundedUpToNearest(increment: IntMicroseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedUpToNearest(increment: IntMilliseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedUpToNearest(increment: IntMinutes): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedUpToNearest(increment: IntNanoseconds): ZonedDateTime
Content copied to clipboard
fun ZonedDateTime.roundedUpToNearest(increment: IntSeconds): ZonedDateTime
Content copied to clipboard
startOfDayAt
Link copied to clipboard
The ZonedDateTime at the start of the day in zone, taking into account any daylight savings transitions.
startOfWeek
Link copied to clipboard
toDate
Link copied to clipboard
fun String.toDate(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Date
Content copied to clipboard
Converts a string to a Date using a specific parser.
toDateTime
Link copied to clipboard
fun String.toDateTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): DateTime
Content copied to clipboard
Converts a string to a DateTime using a specific parser.
toDateTimeAt
Link copied to clipboard
toDayOfWeek
Link copied to clipboard
toInstant
Link copied to clipboard
fun String.toInstant(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Instant
Content copied to clipboard
Converts a string to an Instant using a specific parser.
toInstantAt
Link copied to clipboard
toOffsetDateTime
Link copied to clipboard
fun String.toOffsetDateTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): OffsetDateTime
Content copied to clipboard
Converts a string to an OffsetDateTime using a specific parser.
toOffsetTime
Link copied to clipboard
fun String.toOffsetTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): OffsetTime
Content copied to clipboard
Converts a string to an OffsetTime using a specific parser.
toTime
Link copied to clipboard
fun String.toTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Time
Content copied to clipboard
Converts a string to a Time using a specific parser.
toUtcOffset
Link copied to clipboard
fun String.toUtcOffset(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): UtcOffset
Content copied to clipboard
Converts a string to a UtcOffset using a specific parser.
toWeekDate
Link copied to clipboard
inline fun <T> Date.toWeekDate(settings: WeekSettings, action: (year: Int, week: Int, day: Int) -> T): T
Content copied to clipboard
toYear
Link copied to clipboard
fun String.toYear(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): Year
Content copied to clipboard
Converts a string to a Year using a specific parser.
toYearMonth
Link copied to clipboard
fun String.toYearMonth(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): YearMonth
Content copied to clipboard
Converts a string to a YearMonth using a specific parser.
toZonedDateTime
Link copied to clipboard
fun OffsetDateTime.toZonedDateTime(zone: TimeZone, strategy: OffsetConversionStrategy): ZonedDateTime
Content copied to clipboard
Converts this OffsetDateTime to a ZonedDateTime using the specified strategy to adjust it to a valid date, time, and offset in zone.
fun String.toZonedDateTime(parser: DateTimeParser, settings: DateTimeParserSettings = DateTimeParserSettings.DEFAULT): ZonedDateTime
Content copied to clipboard
Converts a string to a ZonedDateTime using a specific parser.
truncatedTo
Link copied to clipboard
UtcOffset
Link copied to clipboard
fun UtcOffset(hours: IntHours, minutes: IntMinutes = 0.minutes, seconds: IntSeconds = 0.seconds): UtcOffset
Content copied to clipboard
week
Link copied to clipboard
weekBasedYear
Link copied to clipboard
weekOfMonth
Link copied to clipboard
weekOfWeekBasedYear
Link copied to clipboard
weekOfYear
Link copied to clipboard
ZonedDateTime
Link copied to clipboard
fun ZonedDateTime(year: Int, dayOfYear: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, zone: TimeZone): ZonedDateTime
Content copied to clipboard
Creates a ZonedDateTime from a local date and time.
fun ZonedDateTime(year: Int, month: Month, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, zone: TimeZone): ZonedDateTime
Content copied to clipboard
Creates a ZonedDateTime from a local date and time.
fun ZonedDateTime(year: Int, monthNumber: Int, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, zone: TimeZone): ZonedDateTime
Content copied to clipboard
Creates a ZonedDateTime from a local date and time.
Properties
endOfMonth
Link copied to clipboard
endOfMonth
Link copied to clipboard
endOfMonth
Link copied to clipboard
endOfMonth
Link copied to clipboard
endOfWeek
Link copied to clipboard
endOfWeek
Link copied to clipboard
endOfYear
Link copied to clipboard
endOfYear
Link copied to clipboard
isInLeapDay
Link copied to clipboard
isInLeapDay
Link copied to clipboard
isInLeapDay
Link copied to clipboard
isInLeapYear
Link copied to clipboard
isInLeapYear
Link copied to clipboard
isInLeapYear
Link copied to clipboard
isInLeapYear
Link copied to clipboard
lengthOfMonth
Link copied to clipboard
lengthOfMonth
Link copied to clipboard
lengthOfMonth
Link copied to clipboard
lengthOfMonth
Link copied to clipboard
lengthOfWeekBasedYear
Link copied to clipboard
lengthOfWeekBasedYear
Link copied to clipboard
lengthOfWeekBasedYear
Link copied to clipboard
lengthOfWeekBasedYear
Link copied to clipboard
lengthOfYear
Link copied to clipboard
lengthOfYear
Link copied to clipboard
lengthOfYear
Link copied to clipboard
lengthOfYear
Link copied to clipboard
startOfDay
Link copied to clipboard
startOfMonth
Link copied to clipboard
startOfMonth
Link copied to clipboard
startOfMonth
Link copied to clipboard
startOfMonth
Link copied to clipboard
startOfWeek
Link copied to clipboard
startOfWeek
Link copied to clipboard
startOfWeek
Link copied to clipboard
startOfWeek
Link copied to clipboard
startOfYear
Link copied to clipboard
startOfYear
Link copied to clipboard
startOfYear
Link copied to clipboard
startOfYear
Link copied to clipboard
week
Link copied to clipboard
week
Link copied to clipboard
week
Link copied to clipboard
weekBasedYear
Link copied to clipboard
The week-based year used in the ISO week date system.
weekBasedYear
Link copied to clipboard
The week-based year used in the ISO week date system.
weekBasedYear
Link copied to clipboard
The week-based year used in the ISO week date system.
weekBasedYear
Link copied to clipboard
The week-based year used in the ISO week date system.
weekOfMonth
Link copied to clipboard
weekOfMonth
Link copied to clipboard
weekOfMonth
Link copied to clipboard
weekOfMonth
Link copied to clipboard
weekOfWeekBasedYear
Link copied to clipboard
The week number used in the ISO week date system.
weekOfWeekBasedYear
Link copied to clipboard
The week number used in the ISO week date system.
weekOfWeekBasedYear
Link copied to clipboard
The week number used in the ISO week date system.
weekOfWeekBasedYear
Link copied to clipboard
The week number used in the ISO week date system.
weekOfYear
Link copied to clipboard
weekOfYear
Link copied to clipboard
weekOfYear
Link copied to clipboard
weekOfYear
Link copied to clipboard