def addMtime(document, fullpath):
 for node in domhelpers.findElementsWithAttribute(document, 'class', 'mtime'):
  txt = dom.Text()
  txt.data = time.ctime(os.path.getmtime(fullpath))
  node.appendChild(txt)

def addMtime ( document , fullpath ) : for node in domhelpers . findElementsWithAttribute ( document , 'class' , 'mtime' ) : txt = dom . Text ( ) txt . data = time . ctime ( os . path . getmtime ( fullpath ) ) node . appendChild ( txt )
set the last modified time of the given document .