Loading TOC...

xdmp.strftime

xdmp.strftime(
   $format as String,
   $value as Date
) as String

Summary

Formats a dateTime value using POSIX strftime. This function uses the POSIX strftime system call in the way it is implemented on each platform. For other XQuery functions that have more functionality (for example, for things like timezones), use one or more if the various XQuery or XSLT standard functions such as fn:format-dateTime.

Parameters
$format The strftime format string.
$value The dateTime value.

Usage Notes

The supported format strings differ for different platforms. For the supported format strings for Windows, see the following link:

http://msdn2.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx

For the supported format strings for Solaris, see the following link:

http://docs.sun.com/app/docs/doc/817-5438/6mkt5pcec?a=view

For the supported format strings for Linux, see the following link:

http://linux.about.com/library/cmd/blcmdl3_strftime.htm

Example

xdmp.strftime("%a, %d %b %Y %H:%M:%S", fn.currentDateTime());
=> Thu, 06 Nov 2014 14:08:37

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy