Home > Backend Development > PHP Tutorial > php date() converts mktime() into a readable date_PHP tutorial

php date() converts mktime() into a readable date_PHP tutorial

WBOY
Release: 2016-07-20 11:02:26
Original
961 people have browsed it

php tutorial date() converts mktime() into a readable date

The date/time functions allow you to extract and format the date and time on the server

The mktime() function returns the unix timestamp of a date.

The argument always represents a gmt date, so is_dst has no effect on the result.

The parameters can be left empty in order from right to left, and the empty parameters will be set to the corresponding current gmt value.

Grammar
mktime(hour,minute,second,month,day,year,is_dst)

$s =1294628667;
echo date("y-m-d h:i:s",$s);


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445378.htmlTechArticlephp tutorial date() converts mktime() into a readable date date/time function allows you to extract and format the server The mktime() function on dates and times returns the unix timestamp of a date. Total parameters...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template