Here you can find the source of currentDateMillis()
public static long currentDateMillis()
//package com.java2s; import java.util.Calendar; public class Main { public static long currentDateMillis() { return Calendar.getInstance().getTimeInMillis(); }/*from w w w. j ava2s . c o m*/ }