Implements the magic __callStatic method.
Passes through all unknown static calls onto the DateTime object.
public static function __callStatic($method, $args) { if (!method_exists('\\DateTime', $method)) { throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', static::class, $method)); } return call_user_func_array([ '\\DateTime', $method, ], $args); }