Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Class and Description |
---|---|
class |
LocalDateTime
A date-time without a time-zone in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30 . |
class |
OffsetDateTime
A date-time with a zone offset from UTC in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30+01:00 . |
class |
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 . |
Modifier and Type | Method and Description |
---|---|
static LocalDateTime |
LocalDateTime.of(DateTimeProvider dateTimeProvider)
Obtains an instance of
LocalTime from a date-time provider. |
static ZonedDateTime |
ZonedDateTime.of(DateTimeProvider dateTimeProvider,
TimeZone zone)
Obtains an instance of
ZonedDateTime 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 of
ZonedDateTime from a local date-time
providing a resolver to handle an invalid date-time. |
static OffsetDateTime |
OffsetDateTime.of(DateTimeProvider dateTimeProvider,
ZoneOffset offset)
Obtains an instance of
OffsetDateTime from a date-time provider. |
ZonedDateTime |
ZonedDateTime.withDateTime(DateTimeProvider dateTimeProvider)
Returns a copy of this ZonedDateTime with a different local date-time.
|
OffsetDateTime |
OffsetDateTime.withDateTime(DateTimeProvider dateTimeProvider)
Returns a copy of this
OffsetDateTime with the time altered and the offset retained. |
Copyright © 2014. All rights reserved.