Hi again,
when, in Basex 7.6, formatting a datetime with
format-dateTime(current-dateTime(), "[Y0001][M01][D01][h01][m01][s01][Z0000]")
I was expecting something like
20130314035118+0100
for my area (Central Europe) and instead I get
201303140351180060.
Looks like minutes are not translated to hours and the sign is missing. For documentation I'm referring to
http://www.w3.org/TR/xpath-functions-30/#rules-for-datetime-formatting.
Thanks, M.
Hi Marco,
the new format-...() functions belong to the list of features that need to be finalized for XQuery 3.0. One of the reasons is that their syntax has changed a little over the last months. Just have some patience.
Thanks, Christian ___________________________
On Thu, Mar 14, 2013 at 3:57 PM, Marco Lettere marco.lettere@dedalus.eu wrote:
Hi again,
when, in Basex 7.6, formatting a datetime with
format-dateTime(current-dateTime(), "[Y0001][M01][D01][h01][m01][s01][Z0000]")
I was expecting something like
20130314035118+0100
for my area (Central Europe) and instead I get
201303140351180060.
Looks like minutes are not translated to hours and the sign is missing. For documentation I'm referring to
http://www.w3.org/TR/xpath-functions-30/#rules-for-datetime-formatting.
Thanks, M. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Marco,
the latest snapshot [1] will correctly format timezone components that are specified in XQuery 3.0 format-date/time functions.
Hope this helps, Christian
[1] http://files.basex.org/releases/latest/ ___________________________
On Thu, Mar 14, 2013 at 3:57 PM, Marco Lettere marco.lettere@dedalus.eu wrote:
Hi again,
when, in Basex 7.6, formatting a datetime with
format-dateTime(current-dateTime(), "[Y0001][M01][D01][h01][m01][s01][Z0000]")
I was expecting something like
20130314035118+0100
for my area (Central Europe) and instead I get
201303140351180060.
Looks like minutes are not translated to hours and the sign is missing. For documentation I'm referring to
http://www.w3.org/TR/xpath-functions-30/#rules-for-datetime-formatting.
Thanks, M. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks for the info! M.
On 04/14/2013 05:22 PM, Christian Grün wrote:
Hi Marco,
the latest snapshot [1] will correctly format timezone components that are specified in XQuery 3.0 format-date/time functions.
Hope this helps, Christian
[1] http://files.basex.org/releases/latest/ ___________________________
On Thu, Mar 14, 2013 at 3:57 PM, Marco Lettere marco.lettere@dedalus.eu wrote:
Hi again,
when, in Basex 7.6, formatting a datetime with
format-dateTime(current-dateTime(), "[Y0001][M01][D01][h01][m01][s01][Z0000]")
I was expecting something like
20130314035118+0100
for my area (Central Europe) and instead I get
201303140351180060.
Looks like minutes are not translated to hours and the sign is missing. For documentation I'm referring to
http://www.w3.org/TR/xpath-functions-30/#rules-for-datetime-formatting.
Thanks, M. _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de