Class FormatDate

All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence

public class FormatDate extends SystemFunction implements Callable
Implement the format-date(), format-time(), and format-dateTime() functions in XSLT 2.0 and XQuery 1.1.
  • Field Details

    • knownCalendars

      static final String[] knownCalendars
  • Constructor Details

    • FormatDate

      public FormatDate()
  • Method Details

    • call

      public ZeroOrOne call(XPathContext context, Sequence[] arguments) throws XPathException
      Description copied from interface: Function
      Invoke the function
      Specified by:
      call in interface Callable
      Specified by:
      call in interface Function
      Parameters:
      context - the XPath dynamic evaluation context
      arguments - the actual arguments to be supplied
      Returns:
      the result of invoking the function
      Throws:
      XPathException - if a dynamic error occurs within the function