List of utility methods to do Minute
int | minutes(int num) minutes return seconds(60 * num);
|
int | minutes(int seconds) minutes return seconds * 60;
|
long | minutes2Ms(long minutes) Convert minutes to ms return seconds2Ms(minutes * 60);
|
long | minutes2seconds(long minutes) minutesseconds return minutes * 60;
|
int | minutesFromEpisode(int episodeNumber, int episodeLength) Get the elapsed minutes based off the episode number return episodeLength * episodeNumber;
|
String | minutesFromSecondPadded(int seconds) Returns the minutes:secods of a given time interval return String.format("%02d:%02d", seconds / SECONDS_PER_MINUTE, seconds % SECONDS_PER_MINUTE); |
int | minutesFromSlots(int slots) minutes From Slots return slots * MINUTES_IN_ONE_TIME_SLOT;
|
double | mjdInMinutes(double mjd) Recalculate the number of days (Modified Julian date) to minutes return Math.round(mjd * daysToMinutes);
|
Date | nextMinutes(int diff) next Minutes return add(new Date(), Calendar.MINUTE, diff); |
void | normalizeToMinute(Date date) normalize To Minute Calendar cal = new GregorianCalendar();
cal.setTime(date);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
date.setTime(cal.getTime().getTime());
|