The Ns_HttpTime function converts given time to the appropriate format for an HTTP header or log file. 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).