Classes/ViewHelpers/AbstractDvoContextApiViewHelper.php
protected function checkDateTime($value, $base = null)
    {
        if (is_null($value)) {
            return $value;
        }

        if (!$value instanceof \DateTimeInterface) {
            return $this->buildDateTimebyString($value, $base);
        } else {
            return $value;
        }
    }
protected function checkDateTime($value, $base = null)
    {
        if (is_null($value)) {
            return $value;
        }

        if (!$value instanceof \DateTimeInterface) {
            return $this->buildDateTimebyString($value, $base);
        } else {
            return $value;
        }
    }
protected function checkDateTime ( $ value , $ base = null ) { if ( is_null ( $ value ) ) { return $ value ; } if ( ! $ value instanceof \ DateTimeInterface ) { return $ this -> buildDateTimebyString ( $ value , $ base ) ; } else { return $ value ; } }
check a dateTime value

@param mixed $value
@param mixed $base
@return \DateTimeInterface
@throws Exception
check a dateTime value