12-05-2008, 02:22 PM
|
#6 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
Wouldn't this be easier Wildhoney?
PHP Code:
public function isWeekend() { $iDay = date('N', $this->m_iDate); if($iDay == 6 || $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).
|
|
|
|