tf:getLastModified

Get time stamp of last modification.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

tf:getLastModified(documentNode $document) => dateTime

Description

The function tf:getLastModified is specific to Tamino. It takes a document node as argument and returns the time stamp of its last modification. The time zone used is the Coordinated Universal Time (UTC), which is indicated by the letter "Z" at the end.

Argument

$document

document node

Example

  • For all patient records return patient names and the time stamps of their last modification inside a new patients element:

    for $a in input()
    return
     <patients>
      { $a/patient/name/* }
      <lastChange>{ tf:getLastModified($a) }</lastChange>
     </patients>

    A typical response looks like this:

    graphics/xqr-getLastModified.png