# java.time

# java.time

## Interfaces

|-----------------------------------------------------------------------------------------|-----------------------------------------|
| [InstantSource](https://developer.android.com/reference/kotlin/java/time/InstantSource) | Provides access to the current instant. |

## Classes

|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------|
| [Clock](https://developer.android.com/reference/kotlin/java/time/Clock)                   | A clock providing access to the current instant, date and time using a time-zone.                                  |
| [Duration](https://developer.android.com/reference/kotlin/java/time/Duration)             | A time-based amount of time, such as '34.                                                                          |
| [Instant](https://developer.android.com/reference/kotlin/java/time/Instant)               | An instantaneous point on the time-line.                                                                           |
| [LocalDate](https://developer.android.com/reference/kotlin/java/time/LocalDate)           | A date without a time-zone in the ISO-8601 calendar system, such as`2007-12-03`.                                   |
| [LocalDateTime](https://developer.android.com/reference/kotlin/java/time/LocalDateTime)   | A date-time without a time-zone in the ISO-8601 calendar system, such as`2007-12-03T10:15:30`.                     |
| [LocalTime](https://developer.android.com/reference/kotlin/java/time/LocalTime)           | A time without a time-zone in the ISO-8601 calendar system, such as`10:15:30`.                                     |
| [MonthDay](https://developer.android.com/reference/kotlin/java/time/MonthDay)             | A month-day in the ISO-8601 calendar system, such as`--12-03`.                                                     |
| [OffsetDateTime](https://developer.android.com/reference/kotlin/java/time/OffsetDateTime) | A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as`2007-12-03T10:15:30+01:00`. |
| [OffsetTime](https://developer.android.com/reference/kotlin/java/time/OffsetTime)         | A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as`10:15:30+01:00`.                 |
| [Period](https://developer.android.com/reference/kotlin/java/time/Period)                 | A date-based amount of time in the ISO-8601 calendar system, such as '2 years, 3 months and 4 days'.               |
| [Year](https://developer.android.com/reference/kotlin/java/time/Year)                     | A year in the ISO-8601 calendar system, such as`2007`.                                                             |
| [YearMonth](https://developer.android.com/reference/kotlin/java/time/YearMonth)           | A year-month in the ISO-8601 calendar system, such as`2007-12`.                                                    |
| [ZonedDateTime](https://developer.android.com/reference/kotlin/java/time/ZonedDateTime)   | A date-time with a time-zone in the ISO-8601 calendar system, such as`2007-12-03T10:15:30+01:00 Europe/Paris`.     |
| [ZoneId](https://developer.android.com/reference/kotlin/java/time/ZoneId)                 | A time-zone ID, such as`Europe/Paris`                                                                              |
| [ZoneOffset](https://developer.android.com/reference/kotlin/java/time/ZoneOffset)         | A time-zone offset from Greenwich/UTC, such as`+02:00`.                                                            |

## Exceptions

|-------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|
| [DateTimeException](https://developer.android.com/reference/kotlin/java/time/DateTimeException) | Exception used to indicate a problem while calculating a date-time. |

## Enums

|---------------------------------------------------------------------------------|-----------------------------------|
| [DayOfWeek](https://developer.android.com/reference/kotlin/java/time/DayOfWeek) | A day-of-week, such as 'Tuesday'. |
| [Month](https://developer.android.com/reference/kotlin/java/time/Month)         | A month-of-year, such as 'July'.  |