Class Dates
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.Dates
- Author:
- phaed
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubledifferenceInDays(Timestamp date1, Timestamp date2) static doubledifferenceInDays(Date date1, Date date2) static doubledifferenceInHours(Timestamp date1, Timestamp date2) static doubledifferenceInHours(Date date1, Date date2) static doubledifferenceInMinutes(Timestamp date1, Timestamp date2) static doubledifferenceInMinutes(Date date1, Date date2) static doubledifferenceInMonths(Timestamp date1, Timestamp date2) static doubledifferenceInMonths(Date date1, Date date2) static doubledifferenceInSeconds(Timestamp date1, Timestamp date2) static doubledifferenceInSeconds(Date date1, Date date2) static doubledifferenceInYears(Timestamp date1, Timestamp date2) static doubledifferenceInYears(Date date1, Date date2) static StringformatTime(Long seconds, int depth) authors: RoboMWM, LaxWasHere
-
Method Details
-
differenceInMonths
-
differenceInYears
-
differenceInDays
-
differenceInHours
-
differenceInMinutes
-
differenceInSeconds
-
differenceInMonths
-
differenceInYears
-
differenceInDays
-
differenceInHours
-
differenceInMinutes
-
differenceInSeconds
-
formatTime
authors: RoboMWM, LaxWasHere
- Parameters:
seconds- the time in secondsdepth- Max amount of detail (e.g. only display days and hours if set to 1 and seconds > 1 day)- Returns:
- the string representation of the amount of time labeled as days, hours, minutes, seconds
-