PHP调用时间格式的参数详解
09/17/20081、调用语法
使用函式date() 实现获取当前的时间格式,例如:<?php echo $showtime=date(“Y-m-d H:i:s”);?>
2、时间格式参数设定
上面语法中”Y-m-d H:i:s”,显示的格式为: 年-月-日 小时:分钟:秒
这样看来,我们只要获取对应的相关时间参数就可以替换出自己想要的时间格式了!以下是网上找来的具体参数详解: Read the rest of this post »
1、调用语法
使用函式date() 实现获取当前的时间格式,例如:<?php echo $showtime=date(“Y-m-d H:i:s”);?>
2、时间格式参数设定
上面语法中”Y-m-d H:i:s”,显示的格式为: 年-月-日 小时:分钟:秒
这样看来,我们只要获取对应的相关时间参数就可以替换出自己想要的时间格式了!以下是网上找来的具体参数详解: Read the rest of this post »