Saxonica.com

saxon:last-modified()

saxon:last-modified() ==> xs:dateTime?

saxon:last-modified(node()) ==> xs:dateTime?

This function returns the date/time when the file from which the given node (or the context node, if the argument is omitted) was modified. It returns the empty sequence if the information is not available, or if any errors occur.

To get diagnostics in the event of an error, set the -TJ option on the command line or the TRACE_EXTERNAL_FUNCTIONS configuration option.

Example:

format-dateTime(last-modified())

See also file-last-modified()

Next