List of usage examples for java.time.format DateTimeFormatter ISO_OFFSET_TIME
DateTimeFormatter ISO_OFFSET_TIME
To view the source code for java.time.format DateTimeFormatter ISO_OFFSET_TIME.
Click Source Link
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.parse("18:26:06.325-07:00", DateTimeFormatter.ISO_OFFSET_TIME); System.out.println(m);/*w w w.ja v a2 s .co m*/ }
From source file:Main.java
public static void main(String[] args) { OffsetTime m = OffsetTime.now(); String s = m.format(DateTimeFormatter.ISO_OFFSET_TIME); System.out.println(s);//ww w.j ava 2 s . c om }