function format(date, format = "yyyy-MM-dd hh:mm:ss") {
    //new Date 在 ios safari浏览器有兼容性问题处理如下:
    // ? 兼容safari : 兼容其他浏览器
    let $this = new Date(date) == 'Invalid Date' ? new Date(date...
				 
		
				
                 	
						
				
						
                	[codesyntax lang="php"]
/**
 * 校验日期格式是否合法
 * @param string $date
 * @param array $formats
 * @return bool
 */
function isDateValid($date, $formats = array('Y-m-d', 'Y/m/d', 'Y/n/j')) {
    $unixTime ...
				 
		
				
                 	
						
				
						
                	[codesyntax lang="php"]
<?php
class Time
{
    /**
     * 返回今日开始和结束的时间戳
     *
     * @return array
     */
    public static function today()
    {
        return [
            mktime(0, 0...