Home >Backend Development >PHP Tutorial >Time format issues in PHP4 and PHP5_PHP tutorial

Time format issues in PHP4 and PHP5_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:53:331039browse

PHP5 used on my own computer.

PHP4 used on the server.

Time on my own machine, 2008-2-14 14:56:29
Write the program and upload it, and it will become a string of numbers. 1202972189

Database access.. Field default value Now()
Solution:
This is no problem, this number is the Unix timestamp, which means since 1970-1 -1 to the current number of seconds, generally need to be formatted and displayed

date('Y-m-d',1202972189)
The result is 2008-02-14

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/318697.htmlTechArticlePHP5 used on my computer. PHP4 on the server. Time on my own machine, 2008-2-1414:56: 29 Write a program and upload it, turning it into a string of numbers. 1202972189 Access..field default value for database...
Statement:
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