nstcl  >  Documentation  >  nstcl-http  >  ns_parsehttptime

Tcl Powered!

ns_parsehttptime

NAME

ns_parsehttptime — Returns number of seconds from HTTP time.

SYNOPSIS

package require nstcl-http ?1.0?
package require nstcl ?1.0?

::nstcl::ns_parsehttptime httptime

DESCRIPTION

Given a properly formatted HTTP timestamp, ns_parsehttptime returns the number of seconds since the beginning of the epoch. Returns a 0 when the input is not in canonical HTTP timestamp format.

KEYWORDS

http, nstcl