System.currentTimeMillis() //获取当前系统时区,1970年1月1日0点到当前时间的毫秒数
Date that = new Date(); that.getTime();//跟System.currentTimeMillis()方法一样
/** * V3.02 Activity Task * 获取格林威治当前时间 * * @param * @return */ public static int getGmtSecond() { Date that = new Date(); long gmtMills = that.getTime() + 60000 * that.getTimezoneOffset();//that.getTimezoneOffset();获取当前时区和格林威志时区的分钟数 return (int) (gmtMills / 1000l); }