Android examples for java.util:Date Time
get Current Time Milliseconds
import android.text.TextUtils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.Locale; import java.util.TimeZone; public class Main{ public static long getCurrentTimeMillis() { return System.currentTimeMillis(); }//from ww w . ja va 2 s . c o m }