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
|