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