Example usage for java.time OffsetTime toString

List of usage examples for java.time OffsetTime toString

Introduction

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

Prototype

@Override
public String toString() 

Source Link

Document

Outputs this time as a String , such as 10:15:30+01:00 .

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now(ZoneId.systemDefault());

    System.out.println(m.toString());

}