Here you can find the source of getCurrentTimeMillis()
public static long getCurrentTimeMillis()
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static long getCurrentTimeMillis() { Timestamp time = getSysDate(); return time.getTime(); }/*from ww w . j av a2 s . c o m*/ public static Timestamp getSysDate() { return new Timestamp(System.currentTimeMillis()); } }