import module namespace dt = "http://www.zorba-xquery.com/modules/datetime"; dt:parse-time( "11:12:13 AM", "%r", "en-US" ) (: Example configuration (taken from zorba testsuite): Result: /builddir/build/BUILD/zorba-2.9.1/test/rbkt/ExpQueryResults/zorba/datetime/datetime-parse-time-lr-1.xml.res Error: http://www.zorba-xquery.com/errors:ZOSE0007 --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- Expected output: 11:12:13Z :)