XPath Seconds-from-DateTime

Last update: Edit

1 Overview

The seconds-from-dateTime() function extracts the seconds part of a Date and time attribute so it can be used to compare to a value.

2 Example

This query returns all the logs where the seconds part of DateAttribute is 30 (for example, “2011-12-30 08:08:30”):

//Logging.Log[seconds-from-dateTime(DateAttribute) = 30]