Lines Matching defs:hour

91      * @param hour
92 * the hour of day, 0 - 23.
94 * the minute of the hour, 0 - 59.
99 public Date(int year, int month, int day, int hour, int minute) {
101 cal.set(1900 + year, month, day, hour, minute);
115 * @param hour
116 * the hour of day, 0 - 23.
118 * the minute of the hour, 0 - 59.
126 public Date(int year, int month, int day, int hour, int minute, int second) {
128 cal.set(1900 + year, month, day, hour, minute, second);
259 * Returns the gregorian calendar hour of the day for this {@code Date} object.
261 * @return the hour of the day.
271 * Returns the gregorian calendar minute of the hour for this {@code Date} object.
388 int hour = -1, minute = -1, second = -1, zoneOffset = 0, minutesOffset = 0;
448 if (hour == -1) {
449 hour = digit;
465 if (hour != -1 && minute == -1) {
488 if (hour == 12) {
489 hour = 0;
490 } else if (hour < 1 || hour > 12) {
494 if (hour == 12) {
495 hour = 0;
496 } else if (hour < 1 || hour > 12) {
499 hour += 12;
533 if (hour == -1) {
534 hour = 0;
550 hour -= zoneOffset / 100;
553 hour -= zoneOffset;
555 return UTC(year - 1900, month, date, hour, minute, second);
557 return new Date(year - 1900, month, date, hour, minute, second)
579 * Sets the gregorian calendar hour of the day for this {@code Date} object.
581 * @param hour
582 * the hour of the day.
584 * @deprecated Use {@code Calendar.set(Calendar.HOUR_OF_DAY, hour)} instead.
587 public void setHours(int hour) {
589 cal.set(Calendar.HOUR_OF_DAY, hour);
594 * Sets the gregorian calendar minute of the hour for this {@code Date} object.
741 * @param hour
742 * the hour of day, 0 - 23.
744 * the minute of the hour, 0 - 59.
751 * cal.set(year + 1900, month, day, hour, minute, second);
755 public static long UTC(int year, int month, int day, int hour, int minute,
759 cal.set(1900 + year, month, day, hour, minute, second);