设置时区
1  | date_default_timezone_get();  | 
时间戳
1  | time();  | 
得到指定时间的时间戳
1  | mktime( [$hour, $min, $sec, $mon, $day, $year]);  | 
将英文文本的日期或时间转换成时间戳
1  | strtotime($time [, $now]);  | 
微秒
1  | microtime(); // 0.17627900 1519217007  | 
输出时间
1  | date($format [, $timestamp]);  | 
其他
getdate()返回包含日期时间的数组gettimeofday()返回包含时间信息的数组checkdate()验证时间是否合法
v1.5.2