Java Timestamp compareTo() MethodThe compareTo () method of Timestamp class compares this Timestamp object to the given Timestamp object or to the given date object. SyntaxParameters
ReturnsThe compareTo() method of Timestamp class returns :
Example 1Output: TimeSpan2 value is greater Example 2Output: Geetanjali's birthTime is greater than Reema Example 3Output: Expire Timespan: 2018-09-03 09:01:15.0 Today date: Sun Sep 02 20:27:12 IST 2018 Your plan has not expired. You can still avail our facility. Next TopicJava-timestamp-equals-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