Java Utililty Methods Millisecond to Day

List of utility methods to do Millisecond to Day

Description

The list of methods to do Millisecond to Day are organized into topic(s).

Method

longgetDayDiffInMillisec(int p_daysToAdd, int p_startDay, int p_currentDay)
get Day Diff In Millisec
Integer dayDiff = new Integer((p_daysToAdd + (p_startDay - p_currentDay)) * 24 * 3600000);
return dayDiff.longValue();
intgetDayFromMilliSecond(int milliSecond)
get Day From Milli Second
return (milliSecond) / (24 * 60 * 60 * 1000);
longgetDaysAsMillis(int days)
Given an int value treat it as a number of days and return the number of milliseconds for that number of days.
return (long) days * 86400000;
longgetDaysFromMillis(long time)
Gets the number of days from epoch
return time / (24 * 60 * 60);
longgetDaysZeroTimeMillis(long dateline)
get Days Zero Time Millis
return ((dateline / 86400 * 86400) + (dateline % 86400 < 57600 ? 0 : 86400)) - 28800;