Here you can find the source of getMillisecond(Date date)
public static int getMillisecond(Date date)
//package com.java2s; import java.util.*; public class Main { public static Calendar calendar = new GregorianCalendar(); public static int getMillisecond(Date date) { calendar.setTime(date);/* ww w. j av a2 s . c o m*/ return calendar.get(Calendar.MILLISECOND); } }