On 27/04/2019 12:18, Thomas Punt wrote:
Storing dates in an integer format can be a valid use case if
performance is a
concern. It is far faster and more compact to store and compare
integer-based
dates than using objects for everything.
The only way I've seen dates stored as integers is as a number of
seconds / milliseconds / whatever since some epoch, most commonly
seconds since 1970-01-01 00:00:00 UTC
The format Bishop seemed to be suggesting would be absolutely useless
for anything other than the simplest comparisons: how do you add a day
to the date-as-number 20190430?
I'm sure there are use cases for this syntax, but the examples in that
e-mail were poorly chosen.
Regards,
--
Rowan Collins
[IMSoP]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php