ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1.时区设置 bool date_default_timezone_set( string $timezone_identifier) 2.date — 格式化一个本地时间/日期 string date ( string $format [, int $timestamp ] ) 3.time — 返回当前的 Unix 时间戳 int time ( void ) 4.mktime — 取得一个日期的 Unix 时间戳 int mktime ([ int $hour = date("H") [, int $minute = date("i") [, int $second = date("s") [, int $month = date("n") [, int $day = date("j") [, int $year = date("Y") [, int $is_dst = -1 ]]]]]]] ) 5.strtotime — 将任何字符串的日期时间描述解析为 Unix 时间戳 int strtotime ( string $time [, int $now = time() ] ) 6.microtime — 返回当前 Unix 时间戳和微秒数 mixed microtime ([ bool $get_as_float ] ) 7.getdate — 取得日期/时间信息 array getdate ([ int $timestamp = time() ] ) 8.gettimeofday — 取得当前时间 mixed gettimeofday ([ bool $return_float = false ] ) 9.checkdate — 验证一个格里高里日期 bool checkdate ( int $month , int $day , int $year )