mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8283681: Improve ZonedDateTime offset handling
Reviewed-by: scolebourne, naoto, rriggs
This commit is contained in:
parent
2600f99fec
commit
7bac0a878d
5 changed files with 156 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue