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 | Interface and Description |
---|---|
interface |
DateTimeProvider
Provides access to a date-time in the ISO-8601 calendar system.
|
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 |
LocalTime
A time without time-zone in the ISO-8601 calendar system,
such as
10: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 |
OffsetTime
A time with a zone offset from UTC in the ISO-8601 calendar system,
such as
10: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(DateProvider dateProvider,
TimeProvider timeProvider)
Obtains an instance of
LocalDateTime from a date and time. |
static ZonedDateTime |
ZonedDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
TimeZone zone)
Obtains an instance of
ZonedDateTime 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 of
ZonedDateTime from a local date and time
providing a resolver to handle an invalid date-time. |
static OffsetDateTime |
OffsetDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
ZoneOffset offset)
Obtains an instance of
OffsetDateTime from a date, time and zone offset. |
static LocalTime |
LocalTime.of(TimeProvider timeProvider)
Obtains an instance of
LocalTime from a time provider. |
static OffsetTime |
OffsetTime.of(TimeProvider timeProvider,
ZoneOffset offset)
Obtains an instance of
OffsetTime from a time provider. |
OffsetTime |
OffsetTime.withTime(TimeProvider timeProvider)
Returns a copy of this
OffsetTime with the time altered and the offset retained. |
Copyright © 2014. All rights reserved.