rundate ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | xTB log |
| id | rundate |
| name | Run date |
| pattern | \s*\*\s*started\s+run\s+on.* |
| endPattern | .* |
| xml:base | rundate.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{X,cc:rundate}</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]" />