mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8144349: @since tag missed
Reviewed-by: rriggs, scolebourne
This commit is contained in:
parent
29582aaee4
commit
96842473fa
3 changed files with 3 additions and 0 deletions
|
@ -223,6 +223,7 @@ public abstract class Clock {
|
|||
*
|
||||
* @param zone the time-zone to use to convert the instant to date-time, not null
|
||||
* @return a clock that ticks in whole milliseconds using the specified zone, not null
|
||||
* @since 9
|
||||
*/
|
||||
public static Clock tickMillis(ZoneId zone) {
|
||||
return new TickClock(system(zone), NANOS_PER_MILLI);
|
||||
|
|
|
@ -307,6 +307,7 @@ public final class LocalDate
|
|||
* @param zone the time-zone, which may be an offset, not null
|
||||
* @return the local date, not null
|
||||
* @throws DateTimeException if the result exceeds the supported range
|
||||
* @since 9
|
||||
*/
|
||||
public static LocalDate ofInstant(Instant instant, ZoneId zone) {
|
||||
Objects.requireNonNull(instant, "instant");
|
||||
|
|
|
@ -354,6 +354,7 @@ public final class LocalTime
|
|||
* @param instant the instant to create the time from, not null
|
||||
* @param zone the time-zone, which may be an offset, not null
|
||||
* @return the local time, not null
|
||||
* @since 9
|
||||
*/
|
||||
public static LocalTime ofInstant(Instant instant, ZoneId zone) {
|
||||
Objects.requireNonNull(instant, "instant");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue