|
|
@ -585,7 +585,7 @@ Class Common { |
|
|
|
$date = ''; |
|
|
|
$date = ''; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
preg_match('/^.*([1920]\d{3}[012][0-9][0123]\d).*$/U', $str, $matches); //尝试Y-m-d格式的日期 |
|
|
|
preg_match('/^.*((?:19|20|21)\d{2}[01][0-9][0123]\d).*$/U', $str, $matches); //尝试Y-m-d格式的日期 |
|
|
|
if (empty($matches[1])) { //再尝试单位秒的时间戳 |
|
|
|
if (empty($matches[1])) { //再尝试单位秒的时间戳 |
|
|
|
preg_match('/^.*(\d{10}).*$/U', $str, $matches); |
|
|
|
preg_match('/^.*(\d{10}).*$/U', $str, $matches); |
|
|
|
if (empty($matches[1])) { |
|
|
|
if (empty($matches[1])) { |
|
|
|