Package io. islandtime
Date-time primitives and core concepts, including classes such as Date, Time, Instant, and ZonedDateTime.
Types
Global configuration for Island Time.
A date and time of day with an offset from UTC.
A time of day with an offset from UTC.
A platform-specific representation of an instant in time.
A time zone.
The time shift between a local time and UTC.
A date and time of day in a particular region.
Functions
Converts this OffsetDateTime to an equivalent ZonedDateTime using a fixed-offset time zone.
Combines a local date with a time and UTC offset to create an OffsetDateTime.
Combines a local date and time with a time zone to create a ZonedDateTime.
Combines a local date and time with a UTC offset to create an OffsetDateTime.
Combines an instant with a time zone to create a ZonedDateTime.
Combines an instant with a UTC offset to create an OffsetDateTime.
Combines a local time with a UTC offset to create an OffsetTime.
Returns the number of whole centuries between two dates.
Returns the number of whole centuries between two date-times, which are assumed to be in the same time zone.
Returns the number of whole centuries between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of whole centuries between two years.
Returns the number of whole centuries between two year-months.
Returns the number of whole centuries between two date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the number of days between two dates.
Returns the number whole days between two date-times, which are assumed to be in the same time zone.
Returns the number whole days between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of whole days between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the number of whole decades between two dates.
Returns the number of whole decades between two date-times, which are assumed to be in the same time zone.
Returns the number of whole decades between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of whole decades between two years.
Returns the number of whole decades between two year-months.
Returns the number of whole decades between two date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the Duration between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the Duration between two time points.
Returns the number of whole hours between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of whole hours between two time points.
Returns the number of whole microseconds between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of whole microseconds between two time points.
Returns the number of whole milliseconds between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of whole milliseconds between two time points.
Returns the number of whole minutes between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of whole minutes between two time points.
Returns the number of whole months between two dates.
Returns the number of whole months between two date-times, which are assumed to be in the same time zone.
Returns the number of whole months between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of months between two year-months.
Returns the number of whole months between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the number of nanoseconds between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of nanoseconds between two time points.
Returns the Period between two dates.
Returns the Period between two date-times, which are assumed to be in the same time zone.
Returns the Period between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the Period between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the number of whole seconds between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.
Returns the number of whole seconds between two time points.
Returns the number of whole weeks between two dates.
Returns the number whole weeks between two date-times, which are assumed to be in the same time zone.
Returns the number whole weeks between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of whole weeks between two zoned date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
Returns the number of whole years between two dates.
Returns the number of whole years between two date-times, which are assumed to be in the same time zone.
Returns the number of whole years between two date-times, adjusting the offset of endExclusive if necessary to match the starting date-time.
Returns the number of years between two years.
Returns the number of whole years between two year-months.
Returns the number of whole years between date-times, adjusting the time zone of endExclusive if necessary to match the starting date-time.
The ZonedDateTime at the last representable instant of the day in zone, taking into account any daylight savings transitions.
The date at the end of the week that this date falls in. The first day of the week will be determined by settings. The first day of the week will be determined by the system settings. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized.
The date at the end of the week that this date falls in. The first day of the week will be determined by locale.
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized.
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by locale.
The date-time at the last representable instant of the week that this date-time falls in. The first day of the week will be determined by the user's system settings. This may differ from the first day of the week associated with the default locale on platforms that allow the user to customize this.
Creates a Date from an ISO week date.
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.
Creates the Instant represented by a number of seconds and additional nanoseconds relative to the Unix epoch of 1970-01-01T00:00Z.
Returns this date-time, rounded down to the nearest hour that satisfies the increment.
Returns this date-time, rounded down to the nearest microsecond that satisfies the increment.
Returns this date-time, rounded down to the nearest millisecond that satisfies the increment.
Returns this date-time, rounded down to the nearest minute that satisfies the increment.
Returns this date-time, rounded down to the nearest nanosecond that satisfies the increment.
Returns this date-time, rounded down to the nearest second that satisfies the increment.
Returns this instant, rounded down to the nearest hour that satisfies the increment.
Returns this instant, rounded down to the nearest microsecond that satisfies the increment.
Returns this instant, rounded down to the nearest millisecond that satisfies the increment.
Returns this instant, rounded down to the nearest minute that satisfies the increment.
Returns this instant, rounded down to the nearest nanosecond that satisfies the increment.
Returns this instant, rounded down to the nearest second that satisfies the increment.
Returns this time, rounded down to the nearest hour that satisfies the increment.
Returns this time, rounded down to the nearest microsecond that satisfies the increment.
Returns this time, rounded down to the nearest millisecond that satisfies the increment.
Returns this time, rounded down to the nearest minute that satisfies the increment.
Returns this time, rounded down to the nearest nanosecond that satisfies the increment.
Returns this time, rounded down to the nearest second that satisfies the increment.
Returns this date-time, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up.
Returns this instant, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up.
Returns this time, rounded to match the precision of a given unit. If the time is halfway between whole values of the unit, it will be rounded up.
Returns this date-time, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this instant, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest hour that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest microsecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest millisecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest minute that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest nanosecond that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this time, rounded to the nearest second that satisfies the increment. If the time is halfway between increments, it will be rounded up.
Returns this date-time, rounded up to the nearest hour that satisfies the increment.
Returns this date-time, rounded up to the nearest microsecond that satisfies the increment.
Returns this date-time, rounded up to the nearest millisecond that satisfies the increment.
Returns this date-time, rounded up to the nearest minute that satisfies the increment.
Returns this date-time, rounded up to the nearest nanosecond that satisfies the increment.
Returns this date-time, rounded up to the nearest second that satisfies the increment.
Returns this instant, rounded up to the nearest hour that satisfies the increment.
Returns this instant, rounded up to the nearest microsecond that satisfies the increment.
Returns this instant, rounded up to the nearest millisecond that satisfies the increment.
Returns this instant, rounded up to the nearest minute that satisfies the increment.
Returns this instant, rounded up to the nearest nanosecond that satisfies the increment.
Returns this instant, rounded up to the nearest second that satisfies the increment.
Returns this time, rounded up to the nearest hour that satisfies the increment.
Returns this time, rounded up to the nearest microsecond that satisfies the increment.
Returns this time, rounded up to the nearest millisecond that satisfies the increment.
Returns this time, rounded up to the nearest minute that satisfies the increment.
Returns this time, rounded up to the nearest nanosecond that satisfies the increment.
Returns this time, rounded up to the nearest second that satisfies the increment.
The ZonedDateTime at the start of the day in zone, taking into account any daylight savings transitions.
The date at the start of the week that this date falls in. The first day of the week will be determined by settings.
The date at the start of the week that this date falls in. The first day of the week will be determined by locale.
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized.
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by locale.
The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the user's system settings. This may differ from the first day of the week associated with the default locale on platforms that allow the user to customize this.
Converts a string to a Date using a specific parser.
Convert a string to a DateTime.
Converts a string to a DateTime using a specific parser.
Converts an ISO day of week number to a DayOfWeek.
Converts this date-time to an Instant representing the same time point.
Converts a string to an Instant using a specific parser.
Returns the combined date, time, and UTC offset.
Converts a string to an OffsetDateTime.
Converts a string to an OffsetDateTime using a specific parser.
Returns the combined time and UTC offset.
Converts a string to an OffsetTime.
Converts a string to an OffsetTime using a specific parser.
Converts a string to a Time using a specific parser.
Converts a string to a UtcOffset.
Converts a string to a UtcOffset using a specific parser.
Converts this date to an ISO week date representation.
Converts this date to a week date representation using the week definition in settings.
Returns this date with the precision reduced to the year.
Returns this date-time with the precision reduced to the year.
Returns this year-month with the precision reduced to the year.
Converts a string to a Year using a specific parser.
Returns this date with the precision reduced to the month.
Returns this date-time with the precision reduced to the month.
Converts a string to a YearMonth.
Converts a string to a YearMonth using a specific parser.
Converts a string to a ZonedDateTime.
Converts this OffsetDateTime to a ZonedDateTime using the specified strategy to adjust it to a valid date, time, and offset in zone.
Converts a string to a ZonedDateTime using a specific parser.
The range defining the week that this date falls within. The first day of the week will be determined by the provided settings.
The range defining the week that this date falls within. The first day of the week will be the default associated with the provided locale.
The interval defining the week that this date-time falls within. The first day of the week will be determined by the provided settings.
The interval defining the week that this date-time falls within. The first day of the week will be the default associated with the provided locale.
The week-based year, calculated using the week definition in settings. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year, calculated using the week definition associated with the provided locale. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week of the year, calculated using the week definition in settings. If the week number is associated with the preceding year, 0 will be returned.
The week of the year, calculated using the week definition associated with the provided locale. If the week number is associated with the preceding year, 0 will be returned.
Creates a ZonedDateTime from a local date and time.
Properties
The DateTime at the start of the day. Daylight savings transitions are not taken into account, so the returned date-time may not necessarily exist in all time zones.
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week-based year used in the ISO week date system. This value differs from the regular ISO year when the week number falls in the preceding or following year.
The week number used in the ISO week date system.
The week number used in the ISO week date system.
The week number used in the ISO week date system.
The week number used in the ISO week date system.