Java tutorial
//package com.java2s; public class Main { public static long mAbsTime; public static String getAbsoluteTime() { mAbsTime = System.currentTimeMillis(); // String absoluteTime = getTimeInSalLogFormat(mAbsTime); // Log.i(LOG_TAG, "ABSOLUTE_TIME : " + absoluteTime); return String.valueOf(mAbsTime); } }