Here you can find the source of getMillisGMT()
public static long getMillisGMT()
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.TimeZone; public class Main { /**//from w w w. j a va 2 s. co m * * @return */ public static long getMillisGMT() { Calendar calendar = new GregorianCalendar(); TimeZone mTimeZone = calendar.getTimeZone(); int offset = mTimeZone.getOffset(System.currentTimeMillis()); return System.currentTimeMillis() - offset; } }