nsmcp::AccessRecordParser method completionTime (public)

 <instance of nsmcp::AccessRecordParser[i]> completionTime line

Defined in /usr/local/ns/tcl/nsmcp/lib/access-record.tcl

Parameters:
line (required)

Testcases:
No testcase defined.
Source code:
if {![regexp {^\S+\s+\S+\s+(?:"(?:[^"\\]|\\.)*"|\S+)\s+(\[[^\]\r\n]+\]|[0-9]+)\s+"} $line -> stamp]} {return {}}
set stamp [string trim $stamp {[]}]
if {[string is entier -strict $stamp]} {return $stamp}
if {[catch {clock scan $stamp -format {%d/%b/%Y:%H:%M:%S %z} -locale C} time]} {return {}}
return $time
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: