java.time.OffsetTime.of(LocalTime time, ZoneOffset offset)


java.time.OffsetTime.of(LocalTime time, ZoneOffset offset)

package com.codingdict;

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

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

      OffsetTime time = OffsetTime.of(LocalTime.now(),ZoneOffset.UTC);
      System.out.println(time);  
   }
}