Here you can find the source of getDateForMillis(final long tick)
public static Date getDateForMillis(final long tick)
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date getDateForMillis(final long tick) { final Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(tick);//from www. j ava2 s. c om return cal.getTime(); } }