java.time.ZoneOffset.range() 方法示例


java.time.ZoneOffset.range() 方法示例

package com.codingdict;

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

public class ZoneOffsetDemo {
   public static void main(String[] args) {

      ZoneOffset zoneOffset = ZoneOffset.of("+02:00");
      System.out.println("Range : " + zoneOffset.range(ChronoField.OFFSET_SECONDS ));
   }
}