mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
175881681c
commit
0d6a164c34
@ -56,7 +56,7 @@ public class PureDateParser extends DefaultDateBasic implements PredicateDatePar
|
|||||||
return new DateTime(source, DatePattern.PURE_DATE_FORMAT);
|
return new DateTime(source, DatePattern.PURE_DATE_FORMAT);
|
||||||
} else if (length == DatePattern.PURE_TIME_PATTERN.length()) {
|
} else if (length == DatePattern.PURE_TIME_PATTERN.length()) {
|
||||||
return new DateTime(source, DatePattern.PURE_TIME_FORMAT);
|
return new DateTime(source, DatePattern.PURE_TIME_FORMAT);
|
||||||
} else if(length == 13){
|
} else if(length >= 11 && length <= 13){
|
||||||
// 时间戳
|
// 时间戳
|
||||||
return new DateTime(NumberUtil.parseLong(source));
|
return new DateTime(NumberUtil.parseLong(source));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user