Other questions are either about UTC timestamp or GMT formatted date.
Someone with hands-on knowledge of SimpleDateFormat, Date etc. could know this on top of his head, I hope.
Other questions are either about UTC timestamp or GMT formatted date.
Someone with hands-on knowledge of SimpleDateFormat, Date etc. could know this on top of his head, I hope.
Hm, according to http://www.timeanddate.com/time/gmt-utc-time.html UTC and GMT there is no difference caused by daylight saving or whatsoever.
Therefore, correct answer seems to be
System.currentTimeMillis()
(returns timestamp in UTC, which seems to be the same as timestamp in GMT)
The confusion was caused by a certain API doc which specifically asked for timestamp in GMT timezone.