What is the maximum time expressed by the php timestamp? how can this problem be solved?
Source: Internet
Author: User
What is the maximum time that the php timestamp can express? what is the maximum time that the php timestamp can express? on August 1, the biggest time is-1, it is still at 10*10, and it takes several 40 years to enter the first place. follow the section found in 1L: A typical valid timestamp range is the maximum time that php timestamp can express in Greenwich mean.
What is the maximum time expressed by the php timestamp?
------ Solution --------------------
February 1, 2038
------ Solution --------------------
-1 again
------ Solution --------------------
It's still at 10*10, and it takes several 40 years to get one.
------ Solution --------------------
Follow the section found in 1L:
A valid timestamp typically ranges from 20:45:54, January 1, December 13, 1901 to 03:14:07, January 1, January 19, 2038, Greenwich Mean Time. (The value range is the minimum and maximum values of 32-bit signed integers ). However, before PHP 5.1, this range was limited in some systems (such as Windows) from January 1-20, 1970 to January 19.
------ Solution --------------------
I designed 10 bits.
------ Solution --------------------
I usually have 11 digits
------ Solution --------------------
It's usually 10 people, and 11 people are around for centuries.
------ Solution --------------------
Discussion
How many digits is the maximum timestamp generated ??
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.