public interface DateParser extends DateBasic
Date 对象| 限定符和类型 | 方法和说明 |
|---|---|
Date |
parse(String source)
|
default Object |
parseObject(String source)
将日期字符串解析并转换为
Date 对象 |
getLocale, getPattern, getTimeZoneDate parse(String source) throws ParseException
source - 被解析的日期字符串Date对象ParseException - 转换异常,被转换的字符串格式错误。default Object parseObject(String source) throws ParseException
Date 对象source - 被解析的日期字符串Date对象ParseException - if the beginning of the specified string cannot be parsed.Format.parseObject(String)Copyright © 2023. All rights reserved.