Thank you for confirmation, David. I have not tried 6 yet, will try. John
On Wed, Dec 5, 2012 at 11:49 PM, David Lee <[email protected]> wrote: > This is not right. [M003] should produce 012 > > format-dateTime has been rewritten in 6.0 to solve these kinds of issues. > Have you tried 6.0 ? > > > > > > Sent from my iPad (excuse the terseness) > David A Lee > [email protected] > > > On Dec 5, 2012, at 8:32 PM, "John Zhong" <[email protected]> wrote: > > > Hi, > > > > I found a interesting thing about fn:format-dateTime function, see below > code: > > > > xquery version "1.0-ml"; > > > > fn:format-dateTime(fn:current-dateTime(), > > "[MN,*-3] [D01], [Y0001] at [H01]:[m01]:[s01]"), > > fn:format-dateTime(fn:current-dateTime(), > > "[M001] [D01], [Y0001] at [H01]:[m01]:[s01]"), > > fn:format-dateTime(fn:current-dateTime(), > > "[M01] [D01], [Y0001] at [H01]:[m01]:[s01]") > > > > returns: > > > > DEC 05, 2012 at 13:21:02 > > Dec 05, 2012 at 13:21:02 > > 12 05, 2012 at 13:21:02 > > > > For 2nd one, if I use Saxon9 to execute it from a xslt template, the > [M001] returns 012 in this case. But ML (I am using 5.0-4) return Dec, is > it expected? > > > > John > > _______________________________________________ > > General mailing list > > [email protected] > > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
