Posts: 307
Threads: 88
Joined: Feb 2015
Reputation:
0
hi, I have gettime(hour,minute,seconds);
if(hour >= 00 or
if(hour >= 24
if(hour >= 0
can please someone tell me?correct one!
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
I don't know what you are talking about, however if you are asking what is the military time of 12am, then yep, it's 0.
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
None of these make sense. Hour is ALWAYS greater than or equal to 0 and NEVER greater than or equal to 24.
Posts: 1,208
Threads: 36
Joined: Apr 2015
PHP код:
new hour,minute,seconds
gettime(hour,minute,seconds);
if(hour >= 5 && hour <= 15){
//05:00:00 - 15:59:59
}
if((hour >= 0 && hour <= 6) || (hour >= 17 && hour <= 24)){
//17:00:00 - 06:59:59
}