Uses of Interface
net.time4j.base.UnixTime
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Abstract minimum interface of Time4J.
Contains miscellaneous clock implementations.
Defines the common generic schemes and interfaces of chronological
systems.
This package handles the UTC timeline (Corrected Universal Time) and
other time scales.
General timezone-API.
-
Uses of UnixTime in net.time4j
Modifier and TypeClassDescriptionclass
Represents an instant/moment on the universal timeline with reference to the timezone UTC (UTC+00:00 / Greenwich-meridian).class
Combination of UTC-moment and timezone.Modifier and TypeMethodDescriptionstatic Moment
Common conversion method.PrettyTime.printRelative(UnixTime moment, String tzid)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in at most second precision or less.PrettyTime.printRelative(UnixTime moment, Timezone tz, TimeUnit precision)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or less.PrettyTime.printRelative(UnixTime moment, TZID tzid)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in at most second precision or less.PrettyTime.printRelativeInStdTimezone(UnixTime moment)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in at most second precision or less - using the system timezone.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, long maxdelta, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, CalendarUnit maxRelativeUnit, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time. -
Uses of UnixTime in net.time4j.base
Modifier and TypeInterfaceDescriptioninterface
TimeSource<T extends UnixTime>
Represents any kind of clock as source of current world time. -
Uses of UnixTime in net.time4j.clock
-
Uses of UnixTime in net.time4j.engine
Modifier and TypeMethodDescriptionstatic <T extends UnixTime>
StartOfDayStartOfDay.definedBy(ChronoFunction<CalendarDate,Optional<T>> event)
Obtains the start of a calendar day as determined by given date function. -
Uses of UnixTime in net.time4j.scale
Modifier and TypeInterfaceDescriptioninterface
Defines a time point respective coordinate on the universal timeline as the count of seconds relative to UTC epoch [1972-01-01T00:00:00Z] in the UTC-timezone (Greenwich meridian) and a nanosecond as part of last second. -
Uses of UnixTime in net.time4j.tz
Modifier and TypeMethodDescriptionTransitionHistory.findNextTransition(UnixTime ut)
Queries the next transition after given global timestamp.default Optional<ZonalTransition>
TransitionHistory.findPreviousTransition(UnixTime ut)
Queries the previous transition which defines the offset for a global timestamp immediately before given reference timestamp.default Optional<ZonalTransition>
TransitionHistory.findStartTransition(UnixTime ut)
Queries the last transition which defines the offset for given global timestamp.Timezone.getDaylightSavingOffset(UnixTime ut)
Deprecated.abstract ZonalOffset
Timezone.getExtraOffset(UnixTime ut)
Calculates the extra shift for given global timestamp, in addition to the raw shift.abstract ZonalOffset
Calculates the total offset for given global timestamp.abstract ZonalOffset
Timezone.getRawOffset(UnixTime ut)
Calculates the raw offset for given global timestamp.Timezone.getStandardOffset(UnixTime ut)
Deprecated.This method was renamed, useTimezone.getRawOffset(UnixTime)
instead.TransitionHistory.getStartTransition(UnixTime ut)
Queries the last transition which defines the offset for given global timestamp.TransitionHistory.getTransitions(UnixTime startInclusive, UnixTime endExclusive)
Returns the defined transitions in given POSIX-interval.abstract boolean
Timezone.isDaylightSaving(UnixTime ut)
Queries if the local clock has been adjusted forward at given timestamp.
Timezone.getExtraOffset(UnixTime)
instead.