Java ZoneOffset get valid second range value

Description

Java ZoneOffset get valid second range value

import java.time.ZoneOffset;
import java.time.temporal.ChronoField;
import java.time.temporal.ValueRange;

public class Main {
  public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    ValueRange t = z.range(ChronoField.OFFSET_SECONDS);
    System.out.println(t);// ww  w . j a v a2  s. co  m
  }
}



PreviousNext

Related