System.currentTimeMillis() returns time in UTC or not??????
807589Sep 19 2008 — edited Sep 22 2008Hello Friends,
I want to know that "System.currentTimeMillis()" returns time in UTC or Current Local time
ie suppose i set my TimeZone (GMT+ 2)
then statement gives me value in milliseconds by adding 2 hours to the GMT(Is this value should consider as UTC time or we have to subtract and add offset value according to the timezone.
If time value return by statement is in local time and this is not UTC then is there is any provision in Java to convert local time into UTC time ??
Regards
Gaurav