The current-time() function
Smartsite 7.9 - ...
The current-time() XPath 2.0 function returns the current time.
XML | Copy Code |
---|---|
xs:time fn:current-time() |
Parameters:
- none
Example
XML | Copy Code |
---|---|
<<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:exf="http://smartsite.nl/namespaces/xforms/1.0" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <head> <title>Example</title> <xf:model> <xf:instance> <data xmlns=""> </data> </xf:instance> </xf:model> </head> <body> <xf:group xml:lang="nl-nl"> <xf:output value="exf:format-datetime(fn:current-time(),'t')" /> <xf:output value="exf:format-datetime(fn:current-time(),'T')" /> </xf:group> </body> </html>> |
Namespace
This function is available within the XPath 2.0 namespace (http://www.w3.org/2005/xpath-functions).
Availability
This function is available as of Smartsite 7.9 / SFS release 30.