java.time.OffsetTime.of() 方法示例


java.time.OffsetTime.of() 方法示例

package com.codingdict;

import java.time.OffsetTime;
import java.time.ZoneOffset;

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

      OffsetTime time = OffsetTime.of(6,30,40,50000,ZoneOffset.UTC);
      System.out.println(time);  
   }
}