Quote:
Originally Posted by I need some help
Oh thanks for answering. I tried this before but I haven't seen if it is working...
PHP Code:
static currenttime[10] get_time("%H", currenttime, 9) static secondarytime secondarytime = str_to_num(currenttime) if(secondarytime == 24 || secondarytime < 10) { g_happy = true } else { g_happy = false }
Do you think that the == 24 is wrong?
|
Yes it is wrong because the hour value will never be 24 on a 24 hour clock. The hour range goes from 0 to 23 then back to 0.
0 = 12AM
12 = 12pm
23 = 11pm
23:59:59 = the highest time then back to 0:0:0
__________________