Here you can find the source of getNowTime()
public static long getNowTime()
//package com.java2s; import java.util.Calendar; public class Main { public static long getNowTime() { return Calendar.getInstance().getTime().getTime(); }/*from w ww. j a v a 2 s .co m*/ }