C API Reference -- Ns_HttpTime

### Ns_HttpTime

#### Overview

Return a formatted time string

#### Syntax

        char *Ns_HttpTime(
        Ns_DString *pds
        time_t *when
        );

#### Description

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).

Top of Page
Copyright © 1998-99 America Online, Inc.