| Package | Description |
|---|---|
| net.time4j.calendar |
Support for various regional calendars.
|
| Modifier and Type | Field and Description |
|---|---|
static StdCalendarElement<Integer,JapaneseCalendar> |
JapaneseCalendar.DAY_OF_MONTH
Represents the Japanese day of month.
|
static StdCalendarElement<Weekday,JapaneseCalendar> |
JapaneseCalendar.DAY_OF_WEEK
Represents the Japanese day of week.
|
static StdCalendarElement<Integer,JapaneseCalendar> |
JapaneseCalendar.DAY_OF_YEAR
Represents the Japanese day of year.
|
static StdCalendarElement<Integer,JapaneseCalendar> |
JapaneseCalendar.MONTH_AS_ORDINAL
Represents the ordinal index of a Japanese month.
|
static OrdinalWeekdayElement<JapaneseCalendar> |
JapaneseCalendar.WEEKDAY_IN_MONTH
Element with the ordinal day-of-week within given calendar month.
|
static StdCalendarElement<Integer,JapaneseCalendar> |
JapaneseCalendar.YEAR_OF_ERA
Represents the Japanese year associated with a nengo.
|
| Modifier and Type | Method and Description |
|---|---|
static JapaneseCalendar |
JapaneseCalendar.nowInSystemTime()
Obtains the current calendar date in system time.
|
static JapaneseCalendar |
JapaneseCalendar.of(Nengo nengo,
int yearOfNengo,
EastAsianMonth month,
int dayOfMonth)
Equivalent to
JapaneseCalendar.of(nengo, yearOfNengo, month, dayOfMonth, Leniency.SMART). |
static JapaneseCalendar |
JapaneseCalendar.of(Nengo nengo,
int yearOfNengo,
EastAsianMonth month,
int dayOfMonth,
Leniency leniency)
Creates a new instance of a Japanese calendar date.
|
static JapaneseCalendar |
JapaneseCalendar.ofGregorian(Nengo nengo,
int yearOfNengo,
int month,
int dayOfMonth)
Creates a modern Japanese calendar for all dates since Meiji 6 (gregorian calendar rules).
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<JapaneseCalendar> |
JapaneseCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JapaneseCalendar> |
JapaneseCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
static TimeAxis<JapaneseCalendar.Unit,JapaneseCalendar> |
JapaneseCalendar.axis()
Returns the associated time axis.
|
| Modifier and Type | Method and Description |
|---|---|
long |
JapaneseCalendar.Unit.between(JapaneseCalendar start,
JapaneseCalendar end)
Calculates the difference between given Japanese dates in this unit.
|
int |
JapaneseCalendar.compareTo(JapaneseCalendar other)
Compares first by the temporal position then by nengo position.
|
Copyright © 2014–2021. All rights reserved.