Java tutorial
//package com.java2s; import java.util.Date; public class Main { public static long GetCurrentDateForTimeMills() { Date date = new Date(); long mills = date.getTime(); date = null; return mills; } }