Difference between revisions of "Ns httptime"

From AOLserver Wiki
Jump to navigation Jump to search
(imported from WiKit id 581)
 
 
Line 29: Line 29:
 
----
 
----
  
[[Category Documentation]] - [[Category Core Tcl API]]
+
[[Category:Documentation]] - [[Category:Core Tcl API]]

Latest revision as of 19:44, 7 February 2009

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


NAME

ns_httptime - Convert seconds to HTTP date format

SYNOPSIS

ns_httptime time

DESCRIPTION

This command converts the time, specified as the number of seconds from 00:00:00 UTC Jan 1, 1970, to a string in HTTP date format (see RFC 2616 Sec 3.3).

EXAMPLES

   % ns_httptime 0
   Thu, 01 Jan 1970 00:00:00 GMT
   % ns_httptime 8675309                               
   Sat, 11 Apr 1970 09:48:29 GMT

SEE ALSO

ns_cookietime, ns_fmttime, ns_gmtime, ns_localtime, ns_parsehttptime, ns_parsetime, ns_time

-