You are viewing the documentation of a previous ioChem-BD version (v4, legacy).ioChem-BD v4 legacy docs.Visit the current documentationCurrent docs
Skip to content

rundate ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idrundate
nameRun date
pattern.*PROGRAM STARTED AT\s+.*
endPattern.*
endPattern2~
xml:baseenvironment/rundate.xml

Input

       **** **** ******  **  PROGRAM STARTED AT               2026-11-13 18:07:43.095
      ***** ** ***  *** **   PROGRAM STARTED ON                                  p038
      **    ****   ******    PROGRAM STARTED BY                              malvarez
      ***** **    ** ** **   PROGRAM PROCESS ID                               3167924
       **** **  *******  **  PROGRAM STARTED IN /home/malvarez/iochembd/workspace_dsp
                                                ace9/dspace/CP2K_SHARE/01_energy_rks_

Output text

xml
<comment class="example.output" id="rundate">
      <module cmlx:templateRef="rundate">
        <list cmlx:templateRef="rundate">
          <scalar dataType="xsd:date" dictRef="cc:rundate">2026-11-13T18:07:43.095</scalar>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="rundate">.*PROGRAM STARTED AT\s+&#123;X,cc:rundate&#125;\s*</record>
<transform process="createDate" xpath=".//cml:scalar[@dictRef='cc:rundate']" format="yyyy-MM-dd HH:mm:ss.SSS" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />