PHP date/time函数:
time() 获取当前时间的时间戳
date() 格式化本地时间和日期
getdate() 取得日期/时间信息
microtime() 返回当前Unix时间戳和微秒数
strtotime() 将任何英文文本的日期时间解析为Unix时间戳
//strtotime(“last month”)
//strtotime(“next Monday”)
checkdate() 验证一个格里高里日期
//checkdate(month,day,year)
date_default_timezone_set(“Asia/shanghai”)设置默认时区
Date_dafault_timezone_get(); 返回默认时区