Lines Matching refs:hour
163 * Returns true if user preference is set to 24-hour format.
165 * @return true if 24 hour time format is selected, false otherwise.
172 * Returns true if user preference with the given user handle is set to 24-hour format.
175 * @return true if 24 hour time format is selected, false otherwise.
252 * to the current locale and the user's 12-/24-hour clock preference.
262 * to the current locale and the user's 12-/24-hour clock preference.
272 * to the current locale and the user's 12-/24-hour clock preference.
474 case 'K': // hour in am/pm (0-11)
475 case 'h': // hour in am/pm (1-12)
477 int hour = inDate.get(Calendar.HOUR);
478 if (c == 'h' && hour == 0) {
479 hour = 12;
481 replacement = zeroPad(hour, count);
484 case 'H': // hour in day (0-23)
485 case 'k': // hour in day (1-24) [but see note below]
487 int hour = inDate.get(Calendar.HOUR_OF_DAY);
489 // implemented, so pretty much all callers that want to format 24-hour
491 if (false && c == 'k' && hour == 0) {
492 hour = 24;
494 replacement = zeroPad(hour, count);