List of usage examples for java.time LocalDateTime atOffset
public OffsetDateTime atOffset(ZoneOffset offset)
From source file:Main.java
public static void main(String[] args) { LocalDateTime a = LocalDateTime.of(2014, 6, 30, 12, 00); OffsetDateTime b = a.atOffset(ZoneOffset.UTC); System.out.println(b);/* ww w . j ava 2 s . com*/ }