Home > php教程 > php手册 > body text

计算当天起始点和结束点时间戳 去当天的数据

WBOY
Release: 2016-06-13 10:57:18
Original
1302 people have browsed it

[php]  /*
 
*+ -------------------------------
 
* 计算当天起始点和结束点时间戳 去当天的数据
 
*+ ------------------------------
 
*/ 
 
$daybegin=strtotime(date("Ymd")); 
$dayend=$begin+86400; 
$query = "SELECT * FROM `info` WHERE addtime$daybegin"; 

/*

*+ -------------------------------

* 计算当天起始点和结束点时间戳 去当天的数据

*+ ------------------------------

*/

$daybegin=strtotime(date("Ymd"));
$dayend=$begin+86400;
$query = "SELECT * FROM `info` WHERE addtime$daybegin";

 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template