get Current Time Milliseconds - Android java.util

Android examples for java.util:Date Time

Description

get Current Time Milliseconds

Demo Code

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

}

Related Tutorials