Which minutes block

William Roeder  
int now = TimeCurrent();
int hourSec = now % 3600;       // [1 … 3599] Seconds into the hour.
int hourMin = hourMin / 60;     // [0 … 59]   Minutes into the hour.
int quarter = hourMin / 15 + 1; // [1 … 4]    Quarter of the hour.
Reason: