time(), date(), mktime(), strtotime() in php
time(): returns the current Unix timestamp;
date(): format a local timestamp;
mktime (hour, minute, second, month, day, year): Get the timestamp of a date;
strtotime(): Parse any English text datetime description into a Unix timestamp
echo time();
echo date('Y-m-d H:i:s',time());
echo mktime(13,54,55,9,18,2015);
echo strtotime("now");
echo strtotime("10 September 2015");
echo strtotime(" 1 day");
echo strtotime(" 1 week");
echo strtotime("next Thursday");
echo strtotime("last Monday");
http://www.bkjia.com/PHPjc/1074129.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1074129.htmlTechArticletime(), date(), mktime(), strtotime() time() in php: return the current Unix timestamp; date(): format a local timestamp; mktime (hour, minute, second, month, day, year): get a...
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