Class DateFunctions.ParseDate
java.lang.Object
org.apache.juneau.commons.svl.TypedFunction
org.apache.juneau.commons.svl.functions.DateFunctions.ParseDate
- All Implemented Interfaces:
VarFunction
- Enclosing class:
- DateFunctions
#{parseDate(s)} / #{parseDate(s, format)} — parses an ISO-8601 string or
a DateTimeFormatter-pattern string to epoch milliseconds.
The single-arg form tries, in order: Instant.parse(java.lang.CharSequence), OffsetDateTime.parse(java.lang.CharSequence),
ZonedDateTime.parse(java.lang.CharSequence), LocalDateTime.parse(java.lang.CharSequence) (assumed UTC),
LocalDate.parse(java.lang.CharSequence) (start-of-day UTC).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.juneau.commons.svl.TypedFunction
invoke, maxArity, minArity
-
Constructor Details
-
ParseDate
public ParseDate()
-
-
Method Details
-
name
Description copied from interface:VarFunctionThe function's invocation name as it appears between#{}and the opening parenthesis in the template. Must consist of ASCII letters, digits, and underscores; must begin with a letter.- Returns:
- The invocation name. Never
nullor empty.
-
invoke
-
invoke
-