Skip to content

How to convert UTC time into local time in Java?

I have time coming from gpslocation service in 1352437114052 format. Can some one tell me how to convert this into local time either in Java or Matlab or Excel. Answer Create a new Date from your milliseconds since epoch. Then use a DateFormat to format it in your desired timezone.