Gettime help!
#1

Hello!

I have a problem with gettime point is that it does not turn up in the right time gives the code underneath

http://pastebin.com/j16ES8kL
Reply
#2

if(hours >= 22 && hours <= 6) Means:

IF hours IS GREATER OR EQUAL TO 22 AND hour IS LESS OR EQUAL TO 6

Which is an impossible statement
Reply
#3

^^
This must be if(hours >= 6 && hours <= 22).
Reply
#4

@Logic_

then it will operate between the hours of 6 to 22 and I need 22 to 6 am
Reply
#5

PHP код:
if((hour >= 22 && hour <= 23) || (hour >= 0  && hour <= 6)) 
Reply
#6

@[Bios]Marcel

Oh thanks! it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)