XPath hours-from-dateTime

1 minute to read Download PDF Edit

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

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

This query returns all Logs where the amount of hours in DateAttribute is 8, for example 2011-12-30 08:00:00.