public class DateParser
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DateParser() |
Modifier and Type | Method and Description |
---|---|
static java.util.Calendar |
parseDate(java.lang.String strVal) |
static java.time.LocalDate |
parseLocalDate(java.lang.String strVal)
Parses a date from a string.
(从字符串中解析日期。)
|
public static java.time.LocalDate parseLocalDate(java.lang.String strVal) throws EvaluationException
strVal
- a string with a date pattern.
(strVal - 带有日期模式的字符串。)
EvaluationException
- exception upon parsing.
(EvaluationException - 解析时的异常。)
public static java.util.Calendar parseDate(java.lang.String strVal) throws EvaluationException
EvaluationException
(评估异常)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.