Example usage for java.time Instant atOffset

List of usage examples for java.time Instant atOffset

Introduction

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

Prototype

public OffsetDateTime atOffset(ZoneOffset offset) 

Source Link

Document

Combines this instant with an offset to create an OffsetDateTime .

Usage

From source file:Main.java

public static void main(String[] args) {
    Instant instant = Instant.parse("2014-12-03T10:15:30.00Z");
    System.out.println(instant.atOffset(ZoneOffset.UTC));

}