Android examples for java.util:Time
get Current Timestamp in long for UTC time
//package com.java2s; import java.util.Calendar; import java.util.TimeZone; public class Main { public static long getCurrentTimestamp() { return Calendar.getInstance(TimeZone.getTimeZone("UTC")) .getTimeInMillis();/*from w ww .j av a2s . c om*/ } }