nsmcp::AccessRecordParser method indexTime (public)

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

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

Parameters:
line (required)

Testcases:
No testcase defined.
Source code:
if {[string first \x00 $line]>=0} {return {}}
if {![regexp {^\S+\s+\S+\s+(?:"(?:[^"\\]|\\.)*"|\S+)\s+(\[[^\]\r\n]+\]|[0-9]+)\s+"(?:[^"\\\r\n]|\\.)*"\s+[1-5][0-9]{2}\s+(?:-|[0-9]+)(.*)$} $line -> stamp tail]} {return {}}
set fields [regexp -all -inline {"(?:[^"\\]|\\.)*"} $tail]
set timing [:timingFields [string trim $stamp {[]}] $fields]
if {$timing eq "" || [dict exists $timing timeDependent]} {return {}}
return [dict get $timing startTime]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: