Class FnFormatDateTime

java.lang.Object
dev.metaschema.core.metapath.function.library.FnFormatDateTime

public final class FnFormatDateTime extends Object
Implements the XPath 3.1 fn:format-dateTime functions.
See Also:
  • Method Details

    • formatDateTime

      @NonNull public static String formatDateTime(@NonNull IDateTimeItem value, @NonNull String picture, @Nullable String language, @Nullable String calendar, @Nullable String place)
      Format a dateTime value using a picture string per the XPath 3.1 fn:format-dateTime specification.
      Parameters:
      value - the dateTime value to format
      picture - the picture string
      language - the language, or null
      calendar - the calendar, or null
      place - the place, or null
      Returns:
      the formatted string