Blogger Information
Blog 250
fans 3
comment 0
visits 321564
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
时间函数:date()
梁凯达的博客
Original
1042 people have browsed it

//date() 函数用于格式化当前时间戳
 //参数1  要转换的格式
 //参数2 可选参数 如果没有设置默认时间戳为当前时间戳
 //如果设置时间戳  表示格式化指定时间戳
 //得到时间戳的函数
 //echo time()
 //echo 2147483647

 echo '<hr />';
 echo date('y-m-d,h-i-s');
 echo '<hr />';
 echo date('y年-m月-d日,h时-i分-s秒');

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