Re: Revive Number Format Separator RFC

From: Date: Sat, 27 Apr 2019 12:37:41 +0000
Subject: Re: Revive Number Format Separator RFC
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-105467@lists.php.net to get a copy of this message
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]

« previous php.internals (#105467) next »