| 程序包 | 说明 |
|---|---|
| com.ctrip.framework.apollo.util.parser |
| 限定符和类型 | 方法和说明 |
|---|---|
Date |
Parsers.DateParser.parse(String text)
Will try to parse the date with Locale.US and formats as follows:
yyyy-MM-dd HH:mm:ss.SSS, yyyy-MM-dd HH:mm:ss and yyyy-MM-dd
|
Date |
Parsers.DateParser.parse(String text,
String format)
Parse the text with the format specified and Locale.US
|
Date |
Parsers.DateParser.parse(String text,
String format,
Locale locale)
Parse the text with the format and locale specified
|
long |
Parsers.DurationParser.parseToMillis(String text) |
Copyright © 2019 Ctrip, Inc.. All rights reserved.