Uses of Enum Class
net.time4j.scale.TimeScale
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Contains classes related to calendrical astronomy.
Defines common interfaces for any format support of Time4J.
This package handles the UTC timeline (Corrected Universal Time) and
other time scales.
-
Uses of TimeScale in net.time4j
Modifier and TypeMethodDescriptionlong
Moment.getElapsedTime(TimeScale scale)
long
ZonalDateTime.getElapsedTime(TimeScale scale)
int
Moment.getNanosecond(TimeScale scale)
int
ZonalDateTime.getNanosecond(TimeScale scale)
static Moment
Creates a new UTC-timestamp by given time coordinates on given time scale.static Moment
Equivalent toMoment.of(elapsedTime, 0, scale)
.Creates a formatted view of this instance taking into account given time scale.Represents this timestamp as decimal value in given time scale. -
Uses of TimeScale in net.time4j.calendar.astro
-
Uses of TimeScale in net.time4j.format
Modifier and TypeFieldDescriptionstatic AttributeKey<TimeScale>
Attributes.TIME_SCALE
Attribute for the time scale to be used in parsing or formatting universal timestamps. -
Uses of TimeScale in net.time4j.scale
Modifier and TypeMethodDescriptionstatic TimeScale
Returns the enum constant of this class with the specified name.static TimeScale[]
TimeScale.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionlong
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.