Here you can find the source of toSeconds(long date)
private static long toSeconds(long date)
//package com.java2s; //License from project: Open Source License public class Main { private static long toSeconds(long date) { return date / 1000L; }//from w w w .j av a2 s . c o m }