Skip to content

rundate ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourcexTB log
idrundate
nameRun date
pattern\s*\*\s*started\s+run\s+on.*
endPattern.*
xml:baserundate.xml

Input

* started run on 2025/02/19 at 17:39:32.337

Output text

xml
<comment class="example.output" id="rundate">
        <module cmlx:templateRef="rundate">
            <scalar dataType="xsd:string" dictRef="cc:rundate">2025/02/19 at 17:39:32.337</scalar>
        </module>
    </comment>

Template definition

xml
<record>\s*\*\s*started\s+run\s+on&#123;X,cc:rundate&#125;</record>
<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:rundate']" format="yyyy/MM/dd 'at' HH:mm:ss.SSS" />
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />