presentationfontcache.exe php code to modify time format

WBOY
Release: 2016-07-29 08:45:23
Original
1205 people have browsed it

Modify the time format:
date("Y-m-d",strtotime($list['pubdate']));
Learning explanation: Put the time into strtotime as a timestamp and use date() to convert the format. Two functions are written below
PHP strtotime() function The
strtotime() function parses the datetime description of any English text into a Unix timestamp.
Syntax
strtotime(time,now) Parameter Description
time specifies the time string to be parsed.
now is the timestamp used to calculate the return value. If this parameter is omitted, the current time is used.
PHP Date() function can format timestamp into a more readable date and time.
Syntax
date(format,timestamp) Parameter Description
format required. Specifies the format of the timestamp.
timestamp optional. Specify timestamp. The default is the current date and time.

The above introduces the code for presentationfontcache.exe PHP to modify the time format, including the content of presentationfontcache.exe. I hope it will be helpful to friends who are interested in PHP tutorials.

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