Here you can find the source of floorSec(long milli)
public static long floorSec(long milli)
//package com.java2s; //License from project: Mozilla Public License public class Main { public static long floorSec(long milli) { return (milli / 1000L) * 1000L; }//from w ww . j a v a 2 s .c o m }