Uses of Interface
javax.time.InstantProvider
-
Packages that use InstantProvider Package Description javax.time Provides classes to manage the continuous time scale including a wrapper for the system clock.javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations.javax.time.calendar.zone Provides classes to implement time-zones and their rules. -
-
Uses of InstantProvider in javax.time
Classes in javax.time that implement InstantProvider Modifier and Type Class Description class
Instant
An instantaneous point on the time-line.Methods in javax.time with parameters of type InstantProvider Modifier and Type Method Description static Duration
Duration. between(InstantProvider startInclusive, InstantProvider endExclusive)
Obtains an instance ofDuration
representing the duration between two instants.static TimeSource
TimeSource. fixed(InstantProvider fixedInstantProvider)
Gets a time-source that always returns the sameInstant
.static Instant
Instant. of(InstantProvider instantProvider)
Obtains an instance ofInstant
from a provider of instants. -
Uses of InstantProvider in javax.time.calendar
Classes in javax.time.calendar that implement InstantProvider Modifier and Type Class Description class
OffsetDateTime
A date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00
.class
ZonedDateTime
A date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris
.Methods in javax.time.calendar with parameters of type InstantProvider Modifier and Type Method Description static OffsetDate
OffsetDate. ofInstant(InstantProvider instantProvider, ZoneOffset offset)
Obtains an instance ofOffsetDate
from anInstantProvider
.static OffsetDateTime
OffsetDateTime. ofInstant(InstantProvider instantProvider, ZoneOffset offset)
Obtains an instance ofOffsetDateTime
from anInstantProvider
.static OffsetTime
OffsetTime. ofInstant(InstantProvider instantProvider, ZoneOffset offset)
Obtains an instance ofOffsetTime
from anInstantProvider
.static ZonedDateTime
ZonedDateTime. ofInstant(InstantProvider instantProvider, TimeZone zone)
Obtains an instance ofZonedDateTime
from anInstant
. -
Uses of InstantProvider in javax.time.calendar.zone
Methods in javax.time.calendar.zone with parameters of type InstantProvider Modifier and Type Method Description Period
ZoneRules. getDaylightSavings(InstantProvider instantProvider)
Gets the amount of daylight savings in use for the specified instant in this zone.abstract ZoneOffset
ZoneRules. getOffset(InstantProvider instant)
Gets the offset applicable at the specified instant in this zone.abstract ZoneOffset
ZoneRules. getStandardOffset(InstantProvider instantProvider)
Gets the standard offset for the specified instant in this zone.boolean
ZoneRules. isDaylightSavings(InstantProvider instant)
Gets the standard offset for the specified instant in this zone.abstract ZoneOffsetTransition
ZoneRules. nextTransition(InstantProvider instantProvider)
Gets the next transition after the specified transition.abstract ZoneOffsetTransition
ZoneRules. previousTransition(InstantProvider instantProvider)
Gets the previous transition after the specified transition.
-