You are viewing the pre-release documentation of the upcoming ioChem-BD v5 release.ioChem-BD v5 pre-release docs.What's newWhat's newยทVisit the v4 legacy documentationv4 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" />