Class DateTimeFunctionFactory
java.lang.Object
com.ibm.icu.message2.DateTimeFunctionFactory
- All Implemented Interfaces:
FunctionFactory
Creates a
Function doing formatting of date / time, similar to
{exp, date} and {exp, time} in MessageFormat.
It does not do selection.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
kind
-
DATE_STYLES_TO_SKELETON
-
TIME_STYLES_TO_SKELETON
-
ISO_PATTERN
-
-
Constructor Details
-
DateTimeFunctionFactory
DateTimeFunctionFactory(String kind)
-
-
Method Details
-
create
The method that is called to create a function.- Specified by:
createin interfaceFunctionFactory- Parameters:
locale- the locale to use for formatting / selection.fixedOptions- the options to use for formatting / selection. The keys and values are function dependent.- Returns:
- the function.
- Throws:
IllegalArgumentException- when something goes wrong (for example conflicting options, invalid option values, etc.)
-
getDateFieldOptions
-
getTimeFieldOptions
-
safeParse
-
parseIso8601
-