| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.calendar |
Support for various regional calendars.
|
| net.time4j.calendar.bahai |
Support for the Badi calendar.
|
| net.time4j.calendar.frenchrev |
Support for the French revolutionary calendar.
|
| net.time4j.calendar.hindu |
Support for the traditional Hindu calendar family.
|
| net.time4j.format.expert |
This package contains the expert-level format- and parse engine of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<C> |
GeneralTimestamp.minus(CalendarDays days)
Subtracts given count of days from this general timestamp and return the result.
|
GeneralTimestamp<C> |
GeneralTimestamp.minus(long amount,
ClockUnit unit)
Subtracts given count of days from this general timestamp and return the result.
|
<C extends CalendarVariant<C>> |
ZonalClock.now(CalendarFamily<C> family,
String variant,
StartOfDay startOfDay)
Gets the current timestamp in the associated timezone and given chronology taking into account
given calendar variant and start of day.
|
<C extends CalendarVariant<C>> |
ZonalClock.now(CalendarFamily<C> family,
VariantSource variantSource,
StartOfDay startOfDay)
Equivalent to
now(chronology, variantSource.getVariant(), startOfDay). |
static <C extends CalendarVariant<C>> |
GeneralTimestamp.of(C calendarVariant,
PlainTime time)
Creates a new timestamp consisting of a calendar variant and a time component.
|
static <C extends Calendrical<?,C>> |
GeneralTimestamp.of(C calendrical,
PlainTime time)
Creates a new timestamp consisting of a general date and a time component.
|
GeneralTimestamp<C> |
GeneralTimestamp.plus(CalendarDays days)
Adds given count of days to this general timestamp and return the result.
|
GeneralTimestamp<C> |
GeneralTimestamp.plus(long amount,
ClockUnit unit)
Adds given count of clock units to this general timestamp and return the result.
|
<C extends CalendarVariant<C>> |
Moment.toGeneralTimestamp(CalendarFamily<C> family,
String variant,
TZID tzid,
StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.
|
<C extends Calendrical<?,C>> |
Moment.toGeneralTimestamp(Chronology<C> chronology,
TZID tzid,
StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.
|
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<EthiopianCalendar> |
EthiopianCalendar.at(EthiopianTime time)
Creates a new local timestamp with this date and given Ethiopian time.
|
GeneralTimestamp<ThaiSolarCalendar> |
ThaiSolarCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<PersianCalendar> |
PersianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<MinguoCalendar> |
MinguoCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JulianCalendar> |
JulianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JucheCalendar> |
JucheCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<JapaneseCalendar> |
JapaneseCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<IndianCalendar> |
IndianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HistoricCalendar> |
HistoricCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HijriCalendar> |
HijriCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<HebrewCalendar> |
HebrewCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given civil time.
|
GeneralTimestamp<D> |
EastAsianCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<CopticCalendar> |
CopticCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<ThaiSolarCalendar> |
ThaiSolarCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<PersianCalendar> |
PersianCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<MinguoCalendar> |
MinguoCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<JulianCalendar> |
JulianCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<JucheCalendar> |
JucheCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<JapaneseCalendar> |
JapaneseCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<IndianCalendar> |
IndianCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<HistoricCalendar> |
HistoricCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<HijriCalendar> |
HijriCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<HebrewCalendar> |
HebrewCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<D> |
EastAsianCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
GeneralTimestamp<CopticCalendar> |
CopticCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<BadiCalendar> |
BadiCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<BadiCalendar> |
BadiCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<FrenchRepublicanCalendar> |
FrenchRepublicanCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
GeneralTimestamp<FrenchRepublicanCalendar> |
FrenchRepublicanCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
| Modifier and Type | Method and Description |
|---|---|
GeneralTimestamp<HinduCalendar> |
HinduCalendar.at(PlainTime time)
Creates a new local timestamp with this date and given civil time.
|
GeneralTimestamp<HinduCalendar> |
HinduCalendar.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
| Modifier and Type | Method and Description |
|---|---|
String |
ChronoFormatter.format(GeneralTimestamp<?> tsp)
Prints given general timestamp.
|
Copyright © 2014–2021. All rights reserved.