public function daily($diff)
    {
        if (($diff->y == 0) && ($diff->m == 0) && (($diff->d == 0) || (($diff->d == 1) && ($diff->h == 0) && ($diff->i == 0)))) {
            return true;
        }
        return false;
    }
public function daily($diff)
    {
        if (($diff->y == 0) && ($diff->m == 0) && (($diff->d == 0) || (($diff->d == 1) && ($diff->h == 0) && ($diff->i == 0)))) {
            return true;
        }
        return false;
    }
public function daily ( $ diff ) { if ( ( $ diff -> y == 0 ) && ( $ diff -> m == 0 ) && ( ( $ diff -> d == 0 ) || ( ( $ diff -> d == 1 ) && ( $ diff -> h == 0 ) && ( $ diff -> i == 0 ) ) ) ) { return true ; } return false ; }
Is date limit by day
@param DateInterval $diff
@return bool
Is date limit by day