Java Date getTime() MethodThe getTime() method of Java Date class returns the number of milliseconds since January 1, 1970, 00:00:00 GTM which is represented by Date object. Syntax:ParametersNA ReturnIt returns the number of milliseconds since January 1, 1970, 00:00:00 GTM. ExampleTest it NowOutput: Number of milliseconds science January 1, 1970, 00:00:00 GTM : 60818841000000 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