Package org.elasticsearch.common
Class LocalTimeOffset.Gap
java.lang.Object
org.elasticsearch.common.LocalTimeOffset
org.elasticsearch.common.LocalTimeOffset.Transition
org.elasticsearch.common.LocalTimeOffset.Gap
- Enclosing class:
- LocalTimeOffset
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.common.LocalTimeOffset
LocalTimeOffset.Gap, LocalTimeOffset.Lookup, LocalTimeOffset.Overlap, LocalTimeOffset.Strategy, LocalTimeOffset.Transition
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Does this transition or any previous transitions move back to the previous day? SeeLocalTimeOffset.Lookup.anyMoveBackToPreviousDay()
for rules.long
The first time that is missing from the local time because of this gap.long
localToUtc(long localMillis, LocalTimeOffset.Strategy strat)
Convert a local time that occurs during this offset or a previous offset to utc, providing a strategy for how to resolve "funny" cases.protected String
toString(long millis)
Methods inherited from class org.elasticsearch.common.LocalTimeOffset.Transition
containsUtcMillis, offsetContaining, previous, startUtcMillis
Methods inherited from class org.elasticsearch.common.LocalTimeOffset
fixedOffset, localToUtcInThisOffset, lookup, toString, utcToLocalTime
-
Method Details
-
localToUtc
Description copied from class:LocalTimeOffset
Convert a local time that occurs during this offset or a previous offset to utc, providing a strategy for how to resolve "funny" cases. You can use this if you've converted from utc to local, rounded down, and then want to convert back to utc and you need fine control over how to handle the "funny" edges.This will not help you if you must convert a local time that you've rounded up. For that you are on your own. May God have mercy on your soul.
- Specified by:
localToUtc
in classLocalTimeOffset
-
firstMissingLocalTime
public long firstMissingLocalTime()The first time that is missing from the local time because of this gap. -
anyMoveBackToPreviousDay
protected boolean anyMoveBackToPreviousDay()Description copied from class:LocalTimeOffset
Does this transition or any previous transitions move back to the previous day? SeeLocalTimeOffset.Lookup.anyMoveBackToPreviousDay()
for rules.- Specified by:
anyMoveBackToPreviousDay
in classLocalTimeOffset
-
toString
- Specified by:
toString
in classLocalTimeOffset
-