hour12 property
int
hour12
The hour in the day in 12-hour clock [1...12]
.
Implementation
int get hour12 {
var result = hour;
if (result > 12) result -= 12;
if (result == 0) result = 12;
return result;
}