Ns parsehttptime
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