/**
*
* @param the number of milliseconds to convert
* @return the number of milliseconds converted to * days * hours * minutes * seconds after the format
* @author Fy.zhang
*/
public static String formatduring (Long MSS) {
Long days = MSS/(1000 * 60 * 60 * 24);
Long hours = (MSS% (1000 * 60 * 60 * 24))/(1000 * 60 * 60);
Long minutes = (MSS% (1000 * 60 * 60))/(1000 * 60);
Long seconds = (MSS% (1000 * 60))/1000;
Return days + "days" + Hours + "hours" + minutes + "minutes"
+ seconds + "seconds";
}
/**
*
* Beginning of @param begin period
* End of @param end time period
* @return The time between the two date type data entered by * days * hours * minutes * seconds format display
* @author Fy.zhang
*/
public static String formatduring (date begin, date end) {
Return formatduring (End.gettime ()-begin.gettime ());
}
Milliseconds to days, hours, minutes, seconds