Home | History | Annotate | Download | only in format

Lines Matching refs:HOUR

104     public  static final char    HOUR                   =    'h';
165 * Returns true if user preference is set to 24-hour format.
167 * @return true if 24 hour time format is selected, false otherwise.
174 * Returns true if user preference with the given user handle is set to 24-hour format.
177 * @return true if 24 hour time format is selected, false otherwise.
254 * to the current locale and the user's 12-/24-hour clock preference.
264 * to the current locale and the user's 12-/24-hour clock preference.
274 * to the current locale and the user's 12-/24-hour clock preference.
529 case 'K': // hour in am/pm (0-11)
530 case 'h': // hour in am/pm (1-12)
532 int hour = inDate.get(Calendar.HOUR);
533 if (c == 'h' && hour == 0) {
534 hour = 12;
536 replacement = zeroPad(hour, count);
539 case 'H': // hour in day (0-23)
540 case 'k': // hour in day (1-24) [but see note below]
542 int hour = inDate.get(Calendar.HOUR_OF_DAY);
544 // implemented, so pretty much all callers that want to format 24-hour
546 if (false && c == 'k' && hour == 0) {
547 hour = 24;
549 replacement = zeroPad(hour, count);