JavaScript function for getting unix timestamp

I don’t know why in JavaScript doesn’t have built-in function which give unix timestamp, but I have small solution.
	function get_unix_timestamp() { 
		return Math.round((new Date()).getTime() / 1000); 
	}