Friends, there is a date 2300-01-01 00:00:00
strtotime('2300-01-01 00:00:00') yields nothing. question why ?? in some places on the site I used the same code and everything works ..
From the description of the strtotime function
The correct timestamp range is usually from December 13, 1901 20:45:54 UTC to January 19, 2038 03:14:07 UTC . (These dates correspond to the minimum and maximum value of a 32-bit signed integer).
In addition, prior to PHP 5.1.0, not all platforms support negative time stamps, so the supported date range can be limited to the Unix Epoch. This means that dates earlier than January 1, 1970 will not work on Windows, some Linux distributions, and several other operating systems.
In 64-bit versions of PHP, the correct timestamp range is virtually endless , since 64 bits are enough to represent approximately 293 billion years in both directions.
The strtotime function accepts a string. This is how strtotime('2300-01-01 00:00:00') should work strtotime('2300-01-01 00:00:00')
Source: https://ru.stackoverflow.com/questions/585517/
All Articles