Example usage for java.time OffsetTime parse

List of usage examples for java.time OffsetTime parse

Introduction

In this page you can find the example usage for java.time OffsetTime parse.

Prototype

public static OffsetTime parse(CharSequence text, DateTimeFormatter formatter) 

Source Link

Document

Obtains an instance of OffsetTime from a text string using a specific formatter.

Usage

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);//from w w  w.j a v a2s . co  m

}