According to the manual, PHP uses the Unix Epoch (00:00:00 UTC on 1 January 1970) to generate its timestamps.
Given this definition, I believe that it is reasonable to work with negative timestamps, when the target date is before the Unix Epoch. But, since time is a complicated matter in programming, I want to know if there is any caveat in using negative timestamps in PHP.
Indeed, you're absolutely right. Negative numbers is just the amount of seconds before the Unix Epoch.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With