timezone formatting

Thursday, 14 March 2013 · 4 messages · last reply 17 Apr 2013
ML
Marco Lettere14 Mar 2013 15:57 #
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.
CG
Christian Grün18 Mar 2013 15:05 #
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
Quoted text · Marco Lettere · 27 lines
On Thu, Mar 14, 2013 at 3:57 PM, Marco Lettere <marco.lettere at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grünin reply to Marco Lettere, 14 Mar 2013, 15:5714 Apr 2013 17:22 #
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/
Quoted text · Marco Lettere · 27 lines
On Thu, Mar 14, 2013 at 3:57 PM, Marco Lettere <marco.lettere at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
ML
Marco Lettere17 Apr 2013 17:53 #
Thanks for the info! M.
Quoted text · Christian Grün · 39 lines
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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

⚡Generated with XQuery