| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Method and Description |
|---|---|
<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.
|
<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.
|
Copyright © 2014–2017. All rights reserved.