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

Reply via email to