Added time(), equivalent to PHP's function.