首页 > Web开发 > 详细

PHP时间戳

时间:2015-01-15 17:42:37      阅读:220      评论:0      收藏:0      [点我收藏+]

strtotime

  strtotime("Today"); #今天凌晨0点的时间戳

  strtotime(‘now‘);     #当前时间的时间戳

  strtotime ( "10 September 2000" ); #2000年九月10号时间戳

  strtotime ( "+1 day" );  #24小时后时间戳

  strtotime ( "+1 week" ); #一周后时间戳

  strtotime ( "+1 week 2 days 4 hours 2 seconds" );

  strtotime ( "next Thursday" ); #下周四时间戳

  strtotime ( "last Monday" );     #上周一时间戳

 

strtotime(‘日[数字] 月[英文] 年[数字]‘);

 

 

echo strtotime ( "today +3 hours" );echo ‘<br />‘; #今日三点
echo strtotime (‘today +3 hours +1 day‘); #明日三点

PHP时间戳

原文:http://www.cnblogs.com/songphp/p/4226439.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!