Re: New DateTime[Immutable]::createFromTimestamp

From: Date: Sat, 28 Oct 2023 14:40:29 +0000
Subject: Re: New DateTime[Immutable]::createFromTimestamp
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-121493@lists.php.net to get a copy of this message
Hi Marc, Personally, I don't think these are necessarily necessary since there is a "from format". However, there is certainly an issue of convenience, so I'm not against it if there's a demand for it. I have one concern. float is imprecise, so I don't think it's suitable for this kind of use. For timestamps, 16 digits are used, which exceeds the guaranteed precision of 15 digits on non-IBM platforms. Regards. Saki

« previous php.internals (#121493) next »