0

I am using below piece of code to get the current date and time Whereas the time is displayed wrongly here, it shows less than 1 hour of current time.

import java.sql.Timestamp
Timestamp currTimeStamp = new Timestamp(System.currentTimeMillis());

Below are the difference in the timings

Karthick88it
  • 601
  • 2
  • 12
  • 28

0 Answers0