| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.scale |
This package handles the UTC timeline (Corrected Universal Time) and
other time scales.
|
| Modifier and Type | Method and Description |
|---|---|
long |
ZonalDateTime.getElapsedTime(TimeScale scale) |
long |
Moment.getElapsedTime(TimeScale scale) |
int |
ZonalDateTime.getNanosecond(TimeScale scale) |
int |
Moment.getNanosecond(TimeScale scale) |
static Moment |
Moment.of(long elapsedTime,
int nanosecond,
TimeScale scale)
Creates a new UTC-timestamp by given time coordinates on given
time scale.
|
static Moment |
Moment.of(long elapsedTime,
TimeScale scale)
Equivalent to
Moment.of(elapsedTime, 0, scale). |
String |
Moment.toString(TimeScale scale)
Creates a formatted view of this instance taking in account
given time scale.
|
BigDecimal |
Moment.transform(TimeScale scale)
Represents this timestamp as decimal value in given time scale.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeScale |
TimeScale.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeScale[] |
TimeScale.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
long |
UniversalTime.getElapsedTime(TimeScale scale)
Represents this timestamp as elpased seconds on given time scale.
|
int |
UniversalTime.getNanosecond(TimeScale scale)
Represents the nanosecond part on the given time scale.
|
Copyright © 2014–2015. All rights reserved.