View Single Post
Old 09-01-2007, 08:54 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Quote:
Originally Posted by psili View Post
I do suck at programming... maybe the PHP "if" statement could have simply been:

if( date("H") >= 20 ) // 'H'
{
.. blah blah
}
There's no need for the leading zeros. 'G' will work fine. This will work until 11:59, but if you want to get pedantic:

Code:
if (date("G") >= "20" || (date("G") == "0" && date("i")  == "00")) {
Quote:
Originally Posted by psili View Post
Grouchy's attentive, for a grouchy guy ;)
He doesn't misplace or forget the special characters.
Hahaha. I love using a text editor that colorizes for me. I've used 'vi' until I switched to KDE, and Kate's my new babe.
__________________

Last edited by GrouchyAdmin; 09-01-2007 at 08:57 PM.. Reason: append.
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote