Module dev.metaschema.core
Class FnFormatDateTime
java.lang.Object
dev.metaschema.core.metapath.function.library.FnFormatDateTime
Implements the XPath 3.1 fn:format-dateTime
functions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatDateTime(IDateTimeItem value, String picture, String language, String calendar, String place) Format a dateTime value using a picture string per the XPath 3.1 fn:format-dateTime specification.
-
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 formatpicture- the picture stringlanguage- the language, ornullcalendar- the calendar, ornullplace- the place, ornull- Returns:
- the formatted string
-