View Single Post
Old 09-01-2007, 09:00 PM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
I totally see what you mean. When I was sadly trying to help Wolfy, after looking at his .txt file, I gave him:

if (date("G") >= "20" {

which made his PHP puke -- I missed the right parens. Oh well... that's why there's "programmers" and "script kiddies" (I'll be the latter) to help all others get confused, I guess.

Quote:
Originally Posted by GrouchyAdmin View Post
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")) {


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.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote