Uses of Interface
javax.time.calendar.DateProvider
Packages that use DateProvider
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes representing dates and times in alternate calendar systems.
-
Uses of DateProvider in javax.time.calendar
Subinterfaces of DateProvider in javax.time.calendarModifier and TypeInterfaceDescriptioninterface
Provides access to a date-time in the ISO-8601 calendar system.Classes in javax.time.calendar that implement DateProviderModifier and TypeClassDescriptionfinal class
A date without a time-zone in the ISO-8601 calendar system, such as2007-12-03
.final class
A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.final class
A date with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03+01:00
.final class
A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.final class
A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
.Methods in javax.time.calendar with parameters of type DateProviderModifier and TypeMethodDescriptionstatic Period
Period.between
(DateProvider startDateProvider, DateProvider endDateProvider) Obtains aPeriod
consisting of the number of days, months and years between two dates.static Period
Period.daysBetween
(DateProvider startDateProvider, DateProvider endDateProvider) Obtains aPeriod
consisting of the number of days between two dates.static Period
Period.monthsBetween
(DateProvider startDateProvider, DateProvider endDateProvider) Obtains aPeriod
consisting of the number of months between two dates.static LocalDate
LocalDate.of
(DateProvider dateProvider) Obtains an instance ofLocalDate
from a date provider.static LocalDateTime
LocalDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider) Obtains an instance ofLocalDateTime
from a date and time.static OffsetDate
OffsetDate.of
(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDate
from a date provider.static OffsetDateTime
OffsetDateTime.of
(DateProvider dateProvider, OffsetTime offsetTime) Obtains an instance ofOffsetDateTime
from aDateProvider
andOffsetTime
.static OffsetDateTime
OffsetDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from a date, time and zone offset.static ZonedDateTime
ZonedDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone) Obtains an instance ofZonedDateTime
from a local date and time where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
from a local date and time providing a resolver to handle an invalid date-time.static LocalDateTime
LocalDateTime.ofMidnight
(DateProvider dateProvider) Obtains an instance ofLocalDateTime
from a date with the time set to midnight at the start of day.static OffsetDateTime
OffsetDateTime.ofMidnight
(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from a date with the time set to midnight at the start of day.OffsetDate.withDate
(DateProvider dateProvider) Returns a copy of thisOffsetDate
with a different local date.static Period
Period.yearsBetween
(DateProvider startDateProvider, DateProvider endDateProvider) Obtains aPeriod
consisting of the number of years between two dates. -
Uses of DateProvider in javax.time.i18n
Classes in javax.time.i18n that implement DateProviderModifier and TypeClassDescriptionfinal class
A date in the Coptic calendar system.final class
A date in the Historic calendar system.