XPath hours-from-dateTime

Last update: Download PDF Edit

1 Overview

The hours-from-dateTime() function extracts the amount of hours from a DateTime attribute so it can be used to compare to a value.

2 Example

This query returns all the logs where the amount of hours in DateAttribute is 8 (for example, “2011-12-30 08:00:00”):

//Logging.Log[hours-from-dateTime(DateAttribute) = 8]