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 |
DateTimeFields
A set of date-time fields.
|
class |
LocalDate
A date without a time-zone in the ISO-8601 calendar system,
such as
2007-12-03 . |
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 |
MonthDay
A month-day in the ISO-8601 calendar system, such as
--12-03 . |
class |
OffsetDate
A date with a zone offset from UTC in the ISO-8601 calendar system,
such as
2007-12-03+01:00 . |
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 |
Year
A year in the ISO-8601 calendar system, such as
2007 . |
class |
YearMonth
A year-month in the ISO-8601 calendar system, such as
2007-12 . |
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 CalendricalMatcher |
CalendricalMatchers.dayOfWeekInMonth(int ordinal,
DayOfWeek dayOfWeek)
Returns the day-of-week in month matcher, which returns true if the
date is the ordinal occurrence of the day-of-week in the month.
|
static CalendricalMatcher |
CalendricalMatchers.firstInMonth(DayOfWeek dayOfWeek)
Returns the first in month matcher, which returns true if the date
is the first occurrence of day-of-week in the month.
|
static CalendricalMatcher |
CalendricalMatchers.lastDayOfMonth()
Returns the last day-of-month matcher, which returns true if the date
is the last valid day of the month.
|
static CalendricalMatcher |
CalendricalMatchers.lastDayOfYear()
Returns the last day-of-year matcher, which returns true if the date is
the last valid day of the year.
|
static CalendricalMatcher |
CalendricalMatchers.leapDay()
Returns the leap day matcher, which returns true if the date
is February 29th in a leap year.
|
static CalendricalMatcher |
CalendricalMatchers.leapYear()
Returns the leap year matcher, which returns true if the date
is in a leap year.
|
static CalendricalMatcher |
CalendricalMatchers.nonWeekendDay()
Returns the non weekend day matcher, which returns true if the date
is between Monday and Friday inclusive.
|
static CalendricalMatcher |
CalendricalMatchers.weekendDay()
Returns the weekend day matcher, which returns true if the date
is Saturday or Sunday.
|
Modifier and Type | Method and Description |
---|---|
boolean |
LocalTime.matches(CalendricalMatcher matcher)
Checks whether this
LocalTime matches the specified matcher. |
boolean |
ZonedDateTime.matches(CalendricalMatcher matcher)
Checks whether this
ZonedDateTime matches the specified matcher. |
boolean |
OffsetTime.matches(CalendricalMatcher matcher)
Checks whether this
OffsetTime matches the specified matcher. |
boolean |
LocalDate.matches(CalendricalMatcher matcher)
Checks whether this
LocalDate matches the specified matcher. |
boolean |
OffsetDate.matches(CalendricalMatcher matcher)
Checks whether this
OffsetDate matches the specified matcher. |
boolean |
LocalDateTime.matches(CalendricalMatcher matcher)
Checks whether this
LocalDateTime matches the specified matcher. |
boolean |
OffsetDateTime.matches(CalendricalMatcher matcher)
Checks whether this
OffsetDateTime matches the specified matcher. |
Copyright © 2014. All rights reserved.