PHP获取当前时间戳
1、time() 函数返回自 Unix 纪元(January 1 1970 00:00:00 GMT)起的当前时间的秒数。echo time(); //输出1531201452。2、date('格式',time()) 函数用于格式化时间/日期。time()参数可省略。echo date('Y-m-d h:i:s', time()); // 2016-12-31 05:07:05 h为12小...
原创
2018-07-10 13:55:59 ·
29331 阅读 ·
0 评论