| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| Modifier and Type | Field and Description |
|---|---|
static TemporalType<LocalDateTime,PlainTimestamp> |
TemporalType.LOCAL_DATE_TIME
Bridge between the JSR-310-class
java.time.LocalDateTime and
the class PlainTimestamp. |
| Modifier and Type | Method and Description |
|---|---|
PlainTimestamp |
PlainDate.at(PlainTime time)
Creates a new local timestamp with this date and given wall time.
|
PlainTimestamp |
PlainDate.atStartOfDay()
Creates a new local timestamp with this date at midnight at the
begin of associated day.
|
PlainTimestamp |
PlainDate.atStartOfDay(String tzid)
Creates a new local timestamp with this date at earliest valid time
at the begin of associated day in given timezone.
|
PlainTimestamp |
PlainDate.atStartOfDay(TZID tzid)
Creates a new local timestamp with this date at earliest valid time
at the begin of associated day in given timezone.
|
PlainTimestamp |
PlainDate.atTime(int hour,
int minute)
Is equivalent to
at(PlainTime.of(hour, minute)). |
PlainTimestamp |
PlainDate.atTime(int hour,
int minute,
int second)
Is equivalent to
at(PlainTime.of(hour, minute, second)). |
static PlainTimestamp |
PlainTimestamp.from(LocalDateTime ldt)
Short cut for
TemporalType.LOCAL_DATE_TIME.translate(ldt). |
PlainTimestamp |
ZonalClock.now()
Gets the current timestamp in the associated timezone.
|
static PlainTimestamp |
PlainTimestamp.of(int year,
int month,
int dayOfMonth,
int hour,
int minute)
Creates a new local timestamp in minute precision.
|
static PlainTimestamp |
PlainTimestamp.of(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second)
Creates a new local timestamp in second precision.
|
static PlainTimestamp |
PlainTimestamp.of(PlainDate date,
PlainTime time)
Creates a new local timestamp with calendar date and wall time.
|
PlainTimestamp |
Moment.toLocalTimestamp()
Converts this instance to a local timestamp in the system
timezone.
|
PlainTimestamp |
ZonalDateTime.toTimestamp()
Converts this object to a zonal timestamp.
|
PlainTimestamp |
Moment.toZonalTimestamp(String tzid)
Converts this instance to a local timestamp in given timezone.
|
PlainTimestamp |
Moment.toZonalTimestamp(TZID tzid)
Converts this instance to a local timestamp in given timezone.
|
PlainTimestamp |
PlainTimestamp.with(ElementOperator<?> operator)
Adjusts this timestamp by given operator.
|
PlainTimestamp |
PlainTimestamp.with(PlainDate date)
Adjusts the calendar part of this timestamp.
|
PlainTimestamp |
PlainTimestamp.with(PlainTime time)
Adjusts the wall time part of this timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeAxis<IsoUnit,PlainTimestamp> |
PlainTimestamp.axis()
Provides a static access to the associated time axis respective
chronology which contains the chronological rules.
|
static <P extends ChronoPattern<P>> |
PlainTimestamp.formatter(String formatPattern,
P patternType,
Locale locale)
Creates a new formatter which uses the given pattern and locale
for formatting and parsing plain timestamps.
|
static <P extends ChronoPattern<P>> |
PlainTimestamp.localFormatter(String formatPattern,
P patternType)
Creates a new formatter which uses the given pattern in the
default locale for formatting and parsing plain timestamps.
|
| Modifier and Type | Method and Description |
|---|---|
int |
PlainTimestamp.compareTo(PlainTimestamp timestamp)
Defines the temporal order of date and time as natural order.
|
boolean |
PlainTimestamp.isAfter(PlainTimestamp timestamp) |
boolean |
PlainTimestamp.isBefore(PlainTimestamp timestamp) |
boolean |
PlainTimestamp.isSimultaneous(PlainTimestamp timestamp) |
Copyright © 2014–2015. All rights reserved.