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


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

package com.codingdict;

import java.time.ZoneOffset;

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

      ZoneOffset zone = ZoneOffset.ofHoursMinutesSeconds(5,30,20);
      System.out.println(zone);  
   }
}