1. home page
  2. Meow

[Notes] PHP's operation of timestamp

PHP strtotime() function

There are many theories supporting the conversion of date format to time stamp. Not tested. I use the Y-m-d H: i: s format

http://www.w3school.com.cn/php/func_date_strtotime.asp

PHP Date/Time Function

Date() returns the current time and formats it

Time() returns the timestamp of the current time

Note: The time obtained by this tool is the time set by the server. Pay attention to time zone, daylight saving time, etc.

http://www.w3school.com.cn/php/php_ref_date.asp

 

 

score zero , full marks 5-star
zero ticket
fabulous zero
After reading and collecting, you can find it next time
  • Copyright notice: This article is published based on the Knowledge Sharing Attribution - Sharing in the Same Way 3.0 Mainland China License Agreement. Please follow this agreement for reprinting
  • Article link: https://moe.xin/1287.html [ copy ](Please indicate the source and link of this article when reprinting)
  • No relevant articles in this article
Previous:
: Next

7 comments

 gravatar

  1. Learn!!

    #1st floor
  2. Lazy meow :eek: To hug

    #2nd floor
  3. I feel that this background has seriously affected my reading.

    #3rd floor
    1. @ Liufang net It seems that... but I'm too lazy to change my meow~

  4. Do friends exchange links

    #4th floor
    1. @ Fast cloud vps Emmm, calculated for AFF sites....

  5. The original check-in can be unlimited

    #5F