摘要: <?php function getMonthStartAndEnd($timestamp){ $startTime = strtotime(date("Y-m-01 00:00:00",$timestamp)); $startTimeStr = date("Y-m-d H:i:s",$startT 阅读全文
posted @ 2021-12-30 16:05 _迷途 阅读(144) 评论(0) 推荐(0) 编辑
摘要: <?php function validateDate($date, $format = 'Y-m-d H:i:s') { $d = DateTime::createFromFormat($format, $date); return $d && $d->format($format) == $da 阅读全文
posted @ 2021-12-30 16:02 _迷途 阅读(1748) 评论(0) 推荐(0) 编辑