function after($when) { if (!is_a($when, 'PHPRPC_Date')) { $when = PHPRPC_Date::parse($when); } if ($this->year < $when->year) { return false; } if ($this->year > $when->year) { return true; } if ($this->month < $when->month) { return false; } if ($this->month > $when->month) { return true; } if ($this->day < $when->day) { return false; } if ($this->day > $when->day) { return true; } if ($this->hour < $when->hour) { return false; } if ($this->hour > $when->hour) { return true; } if ($this->minute < $when->minute) { return false; } if ($this->minute > $when->minute) { return true; } if ($this->second < $when->second) { return false; } if ($this->second > $when->second) { return true; } if ($this->millisecond < $when->millisecond) { return false; } if ($this->millisecond > $when->millisecond) { return true; } return false; }