Which minutes block

 
Hi,

I'm able to get the current time minutes information

Which is the best way to know which 15 min block currently?

EG, 00 - 14 = 1
15 - 29 = 2
30 - 44 = 3
45 - 59 = 4
 
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: