does System.currentTimeMillis() return UTC time?
问题 I want to get the current UTC time in millis. I searched google and got some answers that System.currentTimeMillis() does returns UTC time. but it does not. If I do following: long t1 = System.currentTimeMillis(); long t2 = new Date().getTime(); long t3 = Calendar.getInstance().getTimeInMillis(); all three times are almost same ( difference is in milli seconds due to calls ). t1 = 1372060916 t2 = 1372060917 t3 = 1372060918 and this time is not the UTC time instead this is my timezone time.