Home | History | Annotate | Download | only in util

Lines Matching refs:hours

41      * Update the time to display. Separates that time into the hours, minutes, seconds.
58 long hours = minutes / 60;
59 minutes = minutes - hours * 60;
60 if (hours > 999) {
61 hours = 0;
63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours
66 if (hours == 0 && minutes == 0 && seconds == 0) {
78 hours++;
83 // Hours may be empty
84 if (hours >= 10) {
86 mHours = String.format(format, hours);
87 } else if (hours > 0) {
89 mHours = String.format(format, hours);
94 // Minutes are never empty and when hours are non-empty, must be two digits
95 if (minutes >= 10 || hours > 0) {
96 format = (showNeg && hours == 0) ? NEG_TWO_DIGITS : TWO_DIGITS;
99 format = (showNeg && hours == 0) ? NEG_ONE_DIGIT : ONE_DIGIT;