Java Instant getNano() methodThe getNano() method of Java Instant class is used to get the specific moment on the timeline, from the start of the second. SyntaxParametersNo parameters. ReturnThe nanoseconds within the second, always positive, never exceeds 999,999,999. Example 1Output: The output will be like this. 520000000 Example 2Output: The output will be like this. 0 Next TopicJava-instant-get-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India