| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.format |
Defines common interfaces for any format support of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
Moment |
GeneralTimestamp.at(ZonalOffset offset,
StartOfDay startOfDay)
Combines this general timestamp with given timezone offset to a global UTC-moment.
|
Moment |
GeneralTimestamp.in(Timezone tz,
StartOfDay startOfDay)
Combines this general timestamp with given timezone to a global UTC-moment.
|
<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). |
<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 | Field and Description |
|---|---|
static StartOfDay |
StartOfDay.EVENING
Start of calendar day at 18:00 on previous day.
|
static StartOfDay |
StartOfDay.MIDNIGHT
Default start of calendar day at midnight.
|
static StartOfDay |
StartOfDay.MORNING
Start of calendar day at 06:00 in the morning.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends UnixTime> |
StartOfDay.definedBy(ChronoFunction<CalendarDate,Optional<T>> event)
Obtains the start of a calendar day as determined by given date function.
|
default StartOfDay |
ChronoMerger.getDefaultStartOfDay()
Determines the default start of day.
|
StartOfDay |
Chronology.getDefaultStartOfDay() |
StartOfDay |
BridgeChronology.getDefaultStartOfDay() |
static StartOfDay |
StartOfDay.ofFixedDeviation(int deviation)
Obtains the start of a calendar day relative to midnight in fixed seconds.
|
| Modifier and Type | Field and Description |
|---|---|
static AttributeKey<StartOfDay> |
Attributes.START_OF_DAY
Defines an attribute key which can be used in queries for the start of day during formatting or parsing.
|
Copyright © 2014–2017. All rights reserved.