Re: Add ISO 8601 date format constant with millisecond precision

From: Date: Mon, 31 Aug 2026 08:56:42 +0000
Subject: Re: Add ISO 8601 date format constant with millisecond precision
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-132395@lists.php.net to get a copy of this message
Hi On 2026-08-29 11:47, Théo Attali wrote:
I would appreciate feedback on: 1. Whether a millisecond-precision format is useful in addition to DATE_RFC3339_EXTENDED. 2. Whether an offset-preserving format or a UTC-suffix format is preferable. 3. Whether the proposed names follow the preferred ext/date convention. 4. Whether an RFC is required before implementation.
There are some long-standing plans to introduce a new date and time API and with PHP 8.6 the first part of it will ship: https://wiki.php.net/rfc/duration_class. I believe at this point it may be more useful to focus on continuing shipping a new API than to add even more stuff to the existing API. As an example, the proposed Time\Instant is intentionally timezone-less and an ISO 8601 string with the Z timezone would be an obvious method to add there. Best regards Tim Düsterhus

« previous php.internals (#132395) next »