Uses of Interface
javax.time.calendar.DateTimeProvider
-
Packages that use DateTimeProvider Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations. -
-
Uses of DateTimeProvider in javax.time.calendar
Classes in javax.time.calendar that implement DateTimeProvider Modifier and Type Class Description class
LocalDateTime
A date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30
.class
OffsetDateTime
A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.class
ZonedDateTime
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 DateTimeProvider Modifier and Type Method Description static LocalDateTime
LocalDateTime. of(DateTimeProvider dateTimeProvider)
Obtains an instance ofLocalTime
from a date-time provider.static OffsetDateTime
OffsetDateTime. of(DateTimeProvider dateTimeProvider, ZoneOffset offset)
Obtains an instance ofOffsetDateTime
from a date-time provider.static ZonedDateTime
ZonedDateTime. of(DateTimeProvider dateTimeProvider, TimeZone zone)
Obtains an instance ofZonedDateTime
from a local date-time where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime. of(DateTimeProvider dateTimeProvider, TimeZone zone, ZoneResolver resolver)
Obtains an instance ofZonedDateTime
from a local date-time providing a resolver to handle an invalid date-time.OffsetDateTime
OffsetDateTime. withDateTime(DateTimeProvider dateTimeProvider)
Returns a copy of thisOffsetDateTime
with the time altered and the offset retained.ZonedDateTime
ZonedDateTime. withDateTime(DateTimeProvider dateTimeProvider)
Returns a copy of this ZonedDateTime with a different local date-time.
-