|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    char *Ns_HttpTime(
    Ns_DString *pds
    time_t *when
    );
The Ns_HttpTime function converts given time to the appropriate format for an HTTP header or log file. The Ns_HttpTime function returns the time and date with a four digit year, e.g., "Sun, 06 Nov 1994 08:49:37 GMT".
If when is NULL, the function returns a string containing the current time. The formatted time string is appended to the specified Ns_DString (pds).