View Single Post
Old 12-05-2008, 02:22 PM   #6 (permalink)
maZtah
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Wouldn't this be easier Wildhoney?

PHP Code:
public function isWeekend()
{
    
$iDay date('N'$this->m_iDate);
    
    if(
$iDay == || $iDay == 7)
    {
        return 
true;
    }
    
    return 
false;

I see no reason to use mktime here. Also, I prefer to use integers for days (like monday = 1, sunday = 7).
maZtah is offline  
Reply With Quote