Example usage for java.time OffsetTime withNano

List of usage examples for java.time OffsetTime withNano

Introduction

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

Prototype

public OffsetTime withNano(int nanoOfSecond) 

Source Link

Document

Returns a copy of this OffsetTime with the nano-of-second altered.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    OffsetTime n = m.withNano(1234);
    System.out.println(n);/*from www. j a  v  a  2 s .c  om*/

}