First off, this is not a question about how to fix a problem because my date is outputting 1969.
This is a question about why time does not exist before 1970 or after 2038 when using date()
.
I've tried seaching SO and Google but all that turns up is people getting errors when using date()
incorrectly, resulting in the familiar output of December 31, 1969 5:00 pm
Does anyone know why it can't go before 1970? Should we stop using date()
since it will be unusable after 2038? What's the history on this? What's the work around for working with dates outside of this range?