Ns parsehttptime

From AOLserver Wiki
Revision as of 13:51, 14 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 411)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_parsehttptime.html


NAME

ns_parsehttptime - Convert a HTTP date format string into seconds

SYNOPSIS

ns_parsehttptime httptime

DESCRIPTION

This command parses a string containing an HTTP date format string (see RFC 2616 Sec 3.3) and returns the number of seconds since 00:00:00 UTC Jan 1, 1970.

EXAMPLES

   % ns_parsehttptime "Thu, 01 Jan 1970 00:00:00 GMT"
   0
   % ns_parsehttptime "Thu, 14 Nov 2002 17:29:06 GMT"
   1037294946

SEE ALSO

ns_fmttime, ns_gmtime, ns_httptime, ns_localtime, ns_parsetime, ns_time

Category Documentation - Category Core Tcl API