Java tutorial
//package com.java2s; import java.util.Calendar; public class Main { public static long getNowTime() { return Calendar.getInstance().getTime().getTime() / 1000; } }