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

enddate ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idenddate
nameEnd date
pattern.*PROGRAM ENDED AT\s+.*
endPattern.*
endPattern2~
xml:baseenvironment/enddate.xml

Input

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

Output text

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

Template definition

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