Java Date setTime() MethodThe setTime() method of Java Date class sets a date object. It sets date object to represent time milliseconds after January 1, 1970 00:00:00 GMT. Syntax:Parameterstime: the number of milliseconds Example 1Test it NowOutput: time after settings : Thu Jan 01 05:30:01 IST 1970 Next Topicjava.util.Date |
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