Class NormalDateParser
java.lang.Object
org.aoju.bus.core.date.formatter.NormalMotd
org.aoju.bus.core.date.formatter.parser.NormalDateParser
- All Implemented Interfaces:
Serializable,DateMotd,DateParser
标准日期字符串解析,支持格式;
yyyy-MM-dd HH:mm:ss.SSSSSS
yyyy-MM-dd HH:mm:ss.SSS
yyyy-MM-dd HH:mm:ss
yyyy-MM-dd HH:mm
yyyy-MM-dd
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.aoju.bus.core.date.formatter.NormalMotd
getLocale, getPattern, getTimeZoneMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aoju.bus.core.date.formatter.DateMotd
getLocale, getPattern, getTimeZoneMethods inherited from interface org.aoju.bus.core.date.formatter.parser.DateParser
parseObject
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NormalDateParser
public NormalDateParser()
-
-
Method Details
-
parse
Description copied from interface:DateParser将日期字符串解析并转换为Date对象 等价于DateFormat.parse(String)- Specified by:
parsein interfaceDateParser- Parameters:
source- 被解析的日期字符串- Returns:
Date对象
-