2 http_date() with timestamp
5 extension_loaded('http') or die('ext/http not available');
6 strncasecmp(PHP_SAPI, 'CLI', 3) or die('cannot run tests with CLI');
10 echo http_date(1), "\n";
11 echo http_date(1234567890), "\n";
14 Content-type: text/html
17 Thu, 01 Jan 1970 00:00:01 GMT
18 Fri, 13 Feb 2009 23:31:30 GMT