public interface DateParser
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale()
获取地区
|
String |
getPattern()
获取格式
|
TimeZone |
getTimeZone()
获取时区
|
Date |
parse(String source)
格式化时间
|
Date |
parse(String source,
ParsePosition pos)
格式化时间
|
boolean |
parse(String source,
ParsePosition pos,
Calendar calendar)
格式化时间 解析到日历
|
Date parse(String source, ParsePosition pos)
source
- 时间pos
- 位置boolean parse(String source, ParsePosition pos, Calendar calendar)
source
- 时间pos
- 位置calendar
- 日历String getPattern()
TimeZone getTimeZone()
Locale getLocale()
Copyright © 2024. All rights reserved.