Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
javax.time.calendar.zone |
Provides classes to implement time-zones and their rules.
|
Modifier and Type | Method | Description |
---|---|---|
LocalDateTime |
LocalDate.atMidnight() |
Returns a local date-time formed from this date at the time of midnight.
|
LocalDateTime |
LocalDate.atTime(int hourOfDay,
int minuteOfHour) |
Returns a local date-time formed from this date at the specified time.
|
LocalDateTime |
LocalDate.atTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
Returns a local date-time formed from this date at the specified time.
|
LocalDateTime |
LocalDate.atTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond) |
Returns a local date-time formed from this date at the specified time.
|
LocalDateTime |
LocalDate.atTime(LocalTime localTime) |
Returns a local date-time formed from this date at the specified time.
|
LocalDateTime |
Clock.dateTime() |
Gets the current date-time with maximum resolution of up to nanoseconds.
|
LocalDateTime |
Clock.dateTimeToMinute() |
Gets the current date-time with a resolution of minutes.
|
LocalDateTime |
Clock.dateTimeToSecond() |
Gets the current date-time with a resolution of seconds.
|
LocalDateTime |
LocalDateTime.minus(PeriodProvider periodProvider) |
Returns a copy of this
LocalDateTime with the specified period subtracted. |
LocalDateTime |
LocalDateTime.minus(Duration duration) |
Returns a copy of this
LocalDateTime with the specified duration subtracted. |
LocalDateTime |
LocalDateTime.minusDays(long days) |
Returns a copy of this
LocalDateTime with the specified period in days subtracted. |
LocalDateTime |
LocalDateTime.minusHours(long hours) |
Returns a copy of this
LocalDateTime with the specified period in hours subtracted. |
LocalDateTime |
LocalDateTime.minusMinutes(long minutes) |
Returns a copy of this
LocalDateTime with the specified period in minutes subtracted. |
LocalDateTime |
LocalDateTime.minusMonths(long months) |
Returns a copy of this
LocalDateTime with the specified period in months subtracted. |
LocalDateTime |
LocalDateTime.minusMonths(long months,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the specified period in months subtracted. |
LocalDateTime |
LocalDateTime.minusNanos(long nanos) |
Returns a copy of this
LocalDateTime with the specified period in nanoseconds subtracted. |
LocalDateTime |
LocalDateTime.minusSeconds(long seconds) |
Returns a copy of this
LocalDateTime with the specified period in seconds subtracted. |
LocalDateTime |
LocalDateTime.minusWeeks(long weeks) |
Returns a copy of this
LocalDateTime with the specified period in weeks subtracted. |
LocalDateTime |
LocalDateTime.minusYears(long years) |
Returns a copy of this
LocalDateTime with the specified period in years subtracted. |
LocalDateTime |
LocalDateTime.minusYears(long years,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the specified period in years subtracted. |
static LocalDateTime |
LocalDateTime.now() |
Obtains the current date-time from the system clock in the default time-zone.
|
static LocalDateTime |
LocalDateTime.now(Clock clock) |
Obtains the current date-time from the specified clock.
|
static LocalDateTime |
LocalDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour) |
Obtains an instance of
LocalDateTime from year, month,
day, hour and minute, setting the second and nanosecond to zero. |
static LocalDateTime |
LocalDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
Obtains an instance of
LocalDateTime from year, month,
day, hour, minute and second, setting the nanosecond to zero. |
static LocalDateTime |
LocalDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond) |
Obtains an instance of
LocalDateTime from year, month,
day, hour, minute, second and nanosecond. |
static LocalDateTime |
LocalDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour) |
Obtains an instance of
LocalDateTime from year, month,
day, hour and minute, setting the second and nanosecond to zero. |
static LocalDateTime |
LocalDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
Obtains an instance of
LocalDateTime from year, month,
day, hour, minute and second, setting the nanosecond to zero. |
static LocalDateTime |
LocalDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond) |
Obtains an instance of
LocalDateTime from year, month,
day, hour, minute, second and nanosecond. |
static LocalDateTime |
LocalDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider) |
Obtains an instance of
LocalDateTime from a date and time. |
static LocalDateTime |
LocalDateTime.of(DateTimeProvider dateTimeProvider) |
Obtains an instance of
LocalTime from a date-time provider. |
static LocalDateTime |
LocalDateTime.ofMidnight(int year,
int monthOfYear,
int dayOfMonth) |
Obtains an instance of
LocalDateTime from year, month and
day with the time set to midnight at the start of day. |
static LocalDateTime |
LocalDateTime.ofMidnight(int year,
MonthOfYear monthOfYear,
int dayOfMonth) |
Obtains an instance of
LocalDateTime from year, month and
day with the time set to midnight at the start of day. |
static LocalDateTime |
LocalDateTime.ofMidnight(DateProvider dateProvider) |
Obtains an instance of
LocalDateTime from a date with the
time set to midnight at the start of day. |
static LocalDateTime |
LocalDateTime.parse(String text) |
Obtains an instance of
LocalDateTime from a text string such as 2007-12-03T10:15:30 . |
static LocalDateTime |
LocalDateTime.parse(String text,
DateTimeFormatter formatter) |
Obtains an instance of
LocalDateTime from a text string using a specific formatter. |
LocalDateTime |
LocalDateTime.plus(PeriodProvider periodProvider) |
Returns a copy of this
LocalDateTime with the specified period added. |
LocalDateTime |
LocalDateTime.plus(Duration duration) |
Returns a copy of this
LocalDateTime with the specified duration added. |
LocalDateTime |
LocalDateTime.plusDays(long days) |
Returns a copy of this
LocalDateTime with the specified period in days added. |
LocalDateTime |
LocalDateTime.plusHours(long hours) |
Returns a copy of this
LocalDateTime with the specified period in hours added. |
LocalDateTime |
LocalDateTime.plusMinutes(long minutes) |
Returns a copy of this
LocalDateTime with the specified period in minutes added. |
LocalDateTime |
LocalDateTime.plusMonths(long months) |
Returns a copy of this
LocalDateTime with the specified period in months added. |
LocalDateTime |
LocalDateTime.plusMonths(long months,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the specified period in months added. |
LocalDateTime |
LocalDateTime.plusNanos(long nanos) |
Returns a copy of this
LocalDateTime with the specified period in nanoseconds added. |
LocalDateTime |
LocalDateTime.plusSeconds(long seconds) |
Returns a copy of this
LocalDateTime with the specified period in seconds added. |
LocalDateTime |
LocalDateTime.plusWeeks(long weeks) |
Returns a copy of this
LocalDateTime with the specified period in weeks added. |
LocalDateTime |
LocalDateTime.plusYears(long years) |
Returns a copy of this
LocalDateTime with the specified period in years added. |
LocalDateTime |
LocalDateTime.plusYears(long years,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the specified period in years added. |
LocalDateTime |
DateTimeProvider.toLocalDateTime() |
Returns an instance of
LocalDateTime initialized from the
state of this object. |
LocalDateTime |
LocalDateTime.toLocalDateTime() |
Converts this date-time to a
LocalDateTime ,
trivially returning this . |
LocalDateTime |
LocalTime.Overflow.toLocalDateTime(LocalDate date) |
Creates a
LocalDateTime from the specified date and this instance. |
LocalDateTime |
OffsetDateTime.toLocalDateTime() |
Converts this date-time to a
LocalDateTime . |
LocalDateTime |
ZonedDateTime.toLocalDateTime() |
Converts this
ZonedDateTime to a LocalDateTime . |
LocalDateTime |
LocalDateTime.with(DateAdjuster adjuster) |
Returns a copy of this
LocalDateTime with the date altered using the adjuster. |
LocalDateTime |
LocalDateTime.with(MonthOfYear monthOfYear) |
Returns a copy of this
LocalDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.with(MonthOfYear monthOfYear,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.with(TimeAdjuster adjuster) |
Returns a copy of this
LocalDateTime with the time altered using the adjuster. |
LocalDateTime |
LocalDateTime.withDate(int year,
int monthOfYear,
int dayOfMonth) |
Returns a copy of this
LocalDateTime with the date values altered. |
LocalDateTime |
LocalDateTime.withDate(int year,
MonthOfYear monthOfYear,
int dayOfMonth) |
Returns a copy of this
LocalDateTime with the date values altered. |
LocalDateTime |
LocalDateTime.withDayOfMonth(int dayOfMonth) |
Returns a copy of this
LocalDateTime with the day-of-month altered. |
LocalDateTime |
LocalDateTime.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the day-of-month altered. |
LocalDateTime |
LocalDateTime.withDayOfYear(int dayOfYear) |
Returns a copy of this
LocalDateTime with the day-of-year altered. |
LocalDateTime |
LocalDateTime.withHourOfDay(int hourOfDay) |
Returns a copy of this
LocalDateTime with the hour-of-day value altered. |
LocalDateTime |
LocalDateTime.withMinuteOfHour(int minuteOfHour) |
Returns a copy of this
LocalDateTime with the minute-of-hour value altered. |
LocalDateTime |
LocalDateTime.withMonthOfYear(int monthOfYear) |
Returns a copy of this
LocalDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.withMonthOfYear(int monthOfYear,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.withNanoOfSecond(int nanoOfSecond) |
Returns a copy of this
LocalDateTime with the nano-of-second value altered. |
LocalDateTime |
LocalDateTime.withSecondOfMinute(int secondOfMinute) |
Returns a copy of this
LocalDateTime with the second-of-minute value altered. |
LocalDateTime |
LocalDateTime.withTime(int hourOfDay,
int minuteOfHour) |
Returns a copy of this
LocalDateTime with the time values altered. |
LocalDateTime |
LocalDateTime.withTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
Returns a copy of this
LocalDateTime with the time values altered. |
LocalDateTime |
LocalDateTime.withTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond) |
Returns a copy of this
LocalDateTime with the time values altered. |
LocalDateTime |
LocalDateTime.withYear(int year) |
Returns a copy of this
LocalDateTime with the year altered. |
LocalDateTime |
LocalDateTime.withYear(int year,
DateResolver dateResolver) |
Returns a copy of this
LocalDateTime with the year altered. |
Modifier and Type | Method | Description |
---|---|---|
static CalendricalRule<LocalDateTime> |
LocalDateTime.rule() |
Gets the rule for
LocalDateTime . |
Modifier and Type | Method | Description |
---|---|---|
int |
LocalDateTime.compareTo(LocalDateTime other) |
Compares this
LocalDateTime to another date-time. |
protected abstract OffsetDateTime |
ZoneResolver.handleGap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition gapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime) |
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line gap.
|
protected abstract OffsetDateTime |
ZoneResolver.handleOverlap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition overlapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime) |
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line overlap.
|
boolean |
LocalDateTime.isAfter(LocalDateTime other) |
Checks if this
LocalDateTime is after the specified date-time. |
boolean |
LocalDateTime.isBefore(LocalDateTime other) |
Checks if this
LocalDateTime is before the specified date-time. |
OffsetDateTime |
ZoneResolver.resolve(TimeZone zone,
LocalDateTime newDateTime,
ZonedDateTime oldDateTime) |
Resolves the new local date-time to an offset date-time using the zone.
|
Modifier and Type | Method | Description |
---|---|---|
LocalDateTime |
ZoneOffsetTransition.getLocal() |
Gets the local date-time at the transition which is expressed relative to
the 'before' offset.
|
LocalDateTime |
ZoneOffsetInfo.getLocalDateTime() |
Gets the local date-time that this info is applicable to.
|
Modifier and Type | Method | Description |
---|---|---|
ZoneRulesBuilder |
ZoneRulesBuilder.addRuleToWindow(LocalDateTime dateTime,
ZoneRulesBuilder.TimeDefinition timeDefinition,
Period savingAmount) |
Adds a single transition rule to the current window.
|
ZoneRulesBuilder |
ZoneRulesBuilder.addWindow(ZoneOffset standardOffset,
LocalDateTime until,
ZoneRulesBuilder.TimeDefinition untilDefinition) |
Adds a window to the builder that can be used to filter a set of rules.
|
OffsetDateTime |
ZoneRulesBuilder.TimeDefinition.createDateTime(LocalDateTime dateTime,
ZoneOffset standardOffset,
ZoneOffset wallOffset) |
Creates the offset date-time from the specified local date-time.
|
abstract ZoneOffsetInfo |
ZoneRules.getOffsetInfo(LocalDateTime dateTime) |
Gets the offset information for a local date-time in this zone.
|
static ZoneOffsetInfo |
ZoneOffsetInfo.of(LocalDateTime dateTime,
ZoneOffset offset,
ZoneOffsetTransition transition) |
Creates an instance representing a simple single offset or a transition.
|
Copyright © 2019. All rights reserved.