Home | History | Annotate | Download | only in util

Lines Matching refs:hour

92      * @param hour
93 * the hour of day, 0 - 23.
95 * the minute of the hour, 0 - 59.
101 public Date(int year, int month, int day, int hour, int minute) {
103 cal.set(1900 + year, month, day, hour, minute);
117 * @param hour
118 * the hour of day, 0 - 23.
120 * the minute of the hour, 0 - 59.
128 public Date(int year, int month, int day, int hour, int minute, int second) {
130 cal.set(1900 + year, month, day, hour, minute, second);
261 * Returns the gregorian calendar hour of the day for this {@code Date} object.
263 * @return the hour of the day.
273 * Returns the gregorian calendar minute of the hour for this {@code Date} object.
391 int hour = -1, minute = -1, second = -1, zoneOffset = 0, minutesOffset = 0;
451 if (hour == -1) {
452 hour = digit;
468 if (hour != -1 && minute == -1) {
491 if (hour == 12) {
492 hour = 0;
493 } else if (hour < 1 || hour > 12) {
497 if (hour == 12) {
498 hour = 0;
499 } else if (hour < 1 || hour > 12) {
502 hour += 12;
536 if (hour == -1) {
537 hour = 0;
553 hour -= zoneOffset / 100;
556 hour -= zoneOffset;
558 return UTC(year - 1900, month, date, hour, minute, second);
560 return new Date(year - 1900, month, date, hour, minute, second)
582 * Sets the gregorian calendar hour of the day for this {@code Date} object.
584 * @param hour
585 * the hour of the day.
587 * @deprecated use {@code Calendar.set(Calendar.HOUR_OF_DAY, hour)}
590 public void setHours(int hour) {
592 cal.set(Calendar.HOUR_OF_DAY, hour);
597 * Sets the gregorian calendar minute of the hour for this {@code Date} object.
744 * @param hour
745 * the hour of day, 0 - 23.
747 * the minute of the hour, 0 - 59.
754 * cal.set(year + 1900, month, day, hour, minute, second);
758 public static long UTC(int year, int month, int day, int hour, int minute,
762 cal.set(1900 + year, month, day, hour, minute, second);