$date = new DateTime();
return $date->format('U');

Error:

Class 'namespace\DateTime' not found