HTTP2::date

HTTP2::date – format a date

Synopsis

require_once 'HTTP2.php';

string HTTP::date ( integer time )

Description

Converts a UNIX timestamp into an RFC compliant HTTP header line. This function honors the "y2k_compliance" php.ini directive.

Parameter

  • integer $time - a UNIX timestamp

Return value

string - a RFC compliant date header line

Note

This function can not be called statically.

HTTP2 (Previous) sends a "HEAD" command (Next)
Last updated: Wed, 30 Jul 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.