Java Timestamp getNanos() MethodThe getNanos() method of Timestamp class fetches the Timestamp object's nanos value . SyntaxParametersNA ReturnsThe getNanos() method of Timestamp class returns this Timestamp object?s nanos value. Example 1Output: Timestamp : 2018-09-01 09:01:15.0 Fractional seconds component : 0 Example 2Output: Timestamp : 2018-09-01 09:01:15.45 Fractional seconds component : 450000000 Next TopicJava-timestamp-gettime-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