Example usage for java.time LocalTime atOffset

List of usage examples for java.time LocalTime atOffset

Introduction

In this page you can find the example usage for java.time LocalTime atOffset.

Prototype

public OffsetTime atOffset(ZoneOffset offset) 

Source Link

Document

Combines this time with an offset to create an OffsetTime .

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();
    OffsetTime t = l.atOffset(ZoneOffset.UTC);
    System.out.println(t);//from  ww  w .j ava2s  .  c  o  m
}