public class TimeParser extends Object implements PredicateDateParser, Serializable
HH:mm:ss HH:mm
Modifier and Type | Field and Description |
---|---|
static TimeParser |
INSTANCE
单例
|
Constructor and Description |
---|
TimeParser() |
Modifier and Type | Method and Description |
---|---|
DateTime |
parse(CharSequence source)
将日期字符串解析并转换为
Date 对象 |
boolean |
test(CharSequence dateStr) |
public static final TimeParser INSTANCE
public boolean test(CharSequence dateStr)
test
in interface Predicate<CharSequence>
public DateTime parse(CharSequence source)
DateParser
Date
对象parse
in interface DateParser
source
- 被解析的日期字符串Date
对象Copyright © 2025. All rights reserved.