Java Timestamp before() MethodThe before() method of Timestamp class returns Boolean value true if this Timestamp object is earlier than given Timestamp object. SyntaxParametersThe parameter 'ts' represents the Timestamp to compare with. ReturnsThe before() method of Timestamp class returns :
Example 1Test it NowOutput: Boolean value returned : true Example 2Test it NowOutput: Reema is greater than Geetanjali
Next TopicJava Timestamp
|