Blogger Information
Blog 18
fans 0
comment 0
visits 24490
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mktime获取本地化时间戳
耀的博客
Original
964 people have browsed it

int mktime($hours,$minutes,$seconds,$month,$day,$year);

函数功能:可以对一个日期和时间获得一个本地化时间戳。

函数说明:参数分别表示时分/秒/月/日/年;

返回值:mktime函数的返回值是一个unix时间戳,对于用户的意义不大,常与date函数一起完成时间转换。

示例:

echo date('Y-m-d H:i:s',mktime(10,15,35,date('y'),date('m'),date('d')));

输出结果:2017-11-04 10:15:35


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post