8283681: Improve ZonedDateTime offset handling

Reviewed-by: scolebourne, naoto, rriggs
This commit is contained in:
Claes Redestad 2022-03-25 22:37:55 +00:00
parent 2600f99fec
commit 7bac0a878d
5 changed files with 156 additions and 4 deletions

View file

@ -584,6 +584,11 @@ public abstract sealed class ZoneId implements Serializable permits ZoneOffset,
return this;
}
/**
* Get the effective offset for an instant at the given epochSecond.
*/
/* package-private */ abstract ZoneOffset getOffset(long epochSecond);
//-----------------------------------------------------------------------
/**
* Checks if this time-zone ID is equal to another time-zone ID.