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


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

package com.codingdict;

import java.time.OffsetTime;
import java.time.Instant;
import java.time.ZoneId;

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

      OffsetTime time = OffsetTime.ofInstant(Instant.now(),ZoneId.systemDefault());
      System.out.println(time);  
   }
}