Home > Backend Development > PHP Tutorial > About timestamp issue_PHP tutorial

About timestamp issue_PHP tutorial

WBOY
Release: 2016-07-13 10:51:11
Original
917 people have browsed it



Question
Regarding the timestamp issue
Solution
I encountered a time stamp problem while developing a shopping mall project. I will describe it now and hope you can help solve it
The data segment of the data table is defined as int【11】
The time I want to read now is today’s timestamp. For example, the amount of data added today is XX. Judging based on the timestamp, I am confused


Reference answer
mktime function
Reference answer
date('Y-m-d',time()); //Convert seconds to time
strtotime('2008-8-5'); //Convert time to seconds
Reference answer
Thank you upstairs

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632584.htmlTechArticleProblem about timestamp problem and solution. I encountered a problem about timestamp during the development of a mall project. Let me describe it now. , I hope you can help me solve the data segment definition of the data table...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template