in ch-commons-util/src/main/java/com/cloudhopper/commons/util/PeriodFormatterUtil.java [40:72]
static {
// create a standard period type that does not include years, months,
// weeks, or millis -- this is required in order to properly print out
// the uptime values where we only want a max value of days calculated
dayHourMinSecPeriodType = PeriodType.standard().withYearsRemoved().withMonthsRemoved().withWeeksRemoved().withMillisRemoved();
linuxUptimeStyle = new PeriodFormatterBuilder()
.printZeroAlways()
.appendDays()
.appendSuffix(" day", " days")
.appendSeparator(", ")
.minimumPrintedDigits(2)
.appendHours()
.appendSeparator(":")
.minimumPrintedDigits(2)
.appendMinutes()
.appendSeparator(":")
.minimumPrintedDigits(2)
.appendSeconds()
.toFormatter();
standardUptimeStyle = new PeriodFormatterBuilder()
.printZeroAlways()
.appendDays()
.appendSuffix(" day ", " days ")
.appendHours()
.appendSuffix(" hours ")
.appendMinutes()
.appendSuffix(" mins ")
.appendSeconds()
.appendSuffix(" secs")
.toFormatter();
}