Dear Daniel,
However, the package documentation states that this information is not available from XeTeX (see page 5 of version 1.00 documentation): "...unless you are using XELATEX in which case the seconds and time zone are omitted. (XELATEX doesn’t provide this information.)"
I don't know the new datetime2 package, but probably it depends on primitives such as \pdfcreationdate, and \pdffilemoddate. At present they are only in the pdfTeX engine. But it will not be hard for Khaled to introduce them in XeTeX, if he admits its usefulness, and if he has time. Best, Akira -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
