[xquery-talk] [Dumbo question] allow us to add four minutes to a time

jidanni at jidanni.org jidanni at jidanni.org
Wed Mar 7 19:09:22 PST 2012


Dear Sirs, Gentlemen,
Let us add four minutes to a time.

let $a:="12:34", $b:=4

How do I return "12:38"?
The bus will go by my house 38 minutes past noon.

The documentation is so hard to search through.

OK, first I must apparently append :00 to the time,
then convert the type,
then surround the 4 with P...
then convert its type,
then add them together,
then convert the result back into a string,
is that so?


More information about the talk mailing list