Horde_Date::__isset PHP Method

__isset() public method

Returns whether a date or time property exists.
public __isset ( string $name ) : boolen
$name string One of 'year', 'month', 'mday', 'hour', 'min' or 'sec'.
return boolen True if the property exists and is set.
    public function __isset($name)
    {
        if ($name == 'day') {
            $name = 'mday';
        }
        return ($name == 'year' || $name == 'month' || $name == 'mday' || $name == 'hour' || $name == 'min' || $name == 'sec') && isset($this->{'_' . $name});
    }