Why is the PHP timestamp converted into a Unix timestamp? Solution

Source: Internet
Author: User
Why is the PHP timestamp converted into a Unix timestamp? Why is the PHP timestamp converted into a Unix timestamp ?, Because it returns a Unix timestamp. -- The Unix timestamp is the number of seconds that elapsed since January 1, January 1, 1970 (midnight UTC/GMT), not considering leap seconds ., Reference the post by cy14yang: Why is the PHP timestamp Un? why is the PHP timestamp Unix timestamp?
Why is the PHP timestamp converted into a Unix timestamp?

------ Solution --------------------
Because it returns a Unix timestamp.
--
The Unix timestamp is the number of seconds that have elapsed since January 1, January 1, 1970 (midnight UTC/GMT), regardless of the leap second.
------ Solution --------------------
Reference the post of cy14yang:
Why is the PHP timestamp converted into a Unix timestamp?

------ Solution --------------------
Discussion
Reference the post of cy14yang:
Why is the PHP timestamp converted into a Unix timestamp?


Because the internal time of PHP is the number of seconds from January 1, January 1, 1970 to the present, PHP returns the Unix time cut (PHP Manual), so it is the Unix time cut.

This question does not seem to be a problem ????

------ Solution --------------------
They are all the same.
------ Solution --------------------
One is generated based on the other!
------ Solution --------------------
Most programs now use Unix timestamps.
Many programming things have evolved from Unix.

------ Solution --------------------
I know what the landlord means. he just wants to know why PHP has to use UNIX timestamps as a standard ...... Answers are provided upstairs
------ Solution --------------------
Lz is a wrong question .... Become = "called"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.