ChronoUnit representing the concept of a century.
ChronoUnit representing the concept of a century. For the ISO calendar system, equal to 100 years.
ChronoUnit representing the concept of a day.
ChronoUnit representing the concept of a day. For the ISO calendar system, equal to the standard day from midnight to midnight. The estimated duration of a day is 24 Hours.
When used with other calendar systems a Day must correspond to the day defined by the rising and setting of the Sun on Earth.
It is not required that days begin at midnight; however the date should be equivalent at midday.
ChronoUnit representing the concept of a decade.
ChronoUnit representing the concept of a decade. For the ISO calendar system, equal to 10 years.
When used with other calendar systems Decades must correspond to an integral number of days, and is normally an integral number of years.
ChronoUnit representing the concept of an era.
ChronoUnit representing the concept of an era. The ISO calendar system doesn't have eras thus it is impossible to add an era to a date or date-time. The estimated duration of the era is artificially defined as 1,000,000,000 Years.
ChronoUnit representing the concept of Forever.
ChronoUnit representing the concept of Forever. This is primarily used with TemporalField to represent unbounded fields such as the year or era. The estimated duration of the era is artificially defined as the largest duration supported by Duration.
ChronoUnit representing the concept of half a day, as used in AM/PM.
ChronoUnit representing the concept of half a day, as used in AM/PM. For the ISO calendar system, equal to 12 hours.
ChronoUnit representing the concept of an hour.
ChronoUnit representing the concept of an hour. For the ISO calendar system, equal to 60 minutes.
ChronoUnit representing the concept of a microsecond.
ChronoUnit representing the concept of a microsecond. For the ISO calendar system, equal to the 1,000,000th part of the second unit.
ChronoUnit representing the concept of a millenium.
ChronoUnit representing the concept of a millenium. For the ISO calendar system, equal to 1000 years.
When used with other calendar systems it must correspond to an integral number of days and is normally an integral number of years.
ChronoUnit representing the concept of a millisecond.
ChronoUnit representing the concept of a millisecond. For the ISO calendar system, equal to the 1,000th part of the second unit.
ChronoUnit representing the concept of a minute.
ChronoUnit representing the concept of a minute. For the ISO calendar system, equal to the 60 seconds.
ChronoUnit representing the concept of a month.
ChronoUnit representing the concept of a month. For the ISO calendar system, the length of the month varies by month-of-year. The estimated duration of a month is one twelfth of 365.2425 Days.
When used with other calendar systems it must correspond to an integral number of days.
ChronoUnit representing the concept of a nanosecond, the smallest supported unit of time.
ChronoUnit representing the concept of a nanosecond, the smallest supported unit of time. For the ISO calendar system, equal to the 1,000,000,000th part of the second unit.
ChronoUnit representing the concept of a second.
ChronoUnit representing the concept of a second. For the ISO calendar system, equal to the second in the SI system of units, except around a leap-second.
ChronoUnit representing the concept of a week.
ChronoUnit representing the concept of a week. For the ISO calendar system, equal to 7 days.
When used with other calendar systems it must correspond to an integral number of days.
ChronoUnit representing the concept of a year.
ChronoUnit representing the concept of a year. For the ISO calendar system, equal to 12 months. The estimated duration of a year is 365.2425 Days.
When used with other calendar systems it must correspond to an integral number of days or months roughly equal to a year defined by the passage of the Earth around the Sun.
Provides a standard set of date period units as TemporalUnit instances.