Here you can find the source of getCurrentEpochTime()
private static long getCurrentEpochTime()
//package com.java2s; //License from project: Open Source License import java.util.Date; public class Main { private static long getCurrentEpochTime() { return new Date().getTime(); }/* w ww . j av a 2s . c o m*/ }