Here you can find the source of unixtime()
public static long unixtime()
//package com.java2s; public class Main { /**/* w ww . j a v a 2 s . co m*/ * Calculates "unix time", ie seconds after 1970 * * @return The number of seconds since 1970 */ public static long unixtime() { return System.currentTimeMillis() / 1000L; } }