PHP timestamp and date conversion

strtotime()
is a time function in php; its function is to convert any date and time in the form of a string into the corresponding Unix timestamp.

The date
function is used to obtain the current system date without parameters

PHP comparison time is generally converted into a timestamp to compare.
Use the strtotime function to turn the time into a timestamp.

Guess you like

Origin blog.csdn.net/weixin_44900765/article/details/106351619