Here you can find the source of _toBeginOfMinute(long millis)
private static long _toBeginOfMinute(long millis)
//package com.java2s; //License from project: Open Source License public class Main { private static long _toBeginOfMinute(long millis) { return millis - (millis % (60 * 1000)); }// w w w. ja v a2 s . co m }