Lines Matching refs:hour
27 * - Need fancy "hours" encoding in 12hour mode
44 /* The two alarms have only sec/min/hour/wday fields (ALM_LEN).
101 * Utilities ... tolerate 12-hour AM/PM notation in case of non-Linux
108 unsigned hour = 0;
112 hour = 12;
115 hour += bcd2bin(bcd);
116 return hour - 1;
121 static u8 hour2bcd(bool hr12, int hour)
124 hour++;
125 if (hour <= 12)
126 return DS1305_HR_12 | bin2bcd(hour);
127 hour -= 12;
128 return DS1305_HR_12 | DS1305_HR_PM | bin2bcd(hour);
130 return bin2bcd(hour);