Re: [RFC] Time\Instant and Time\Clock
| From: | Juris Evertovskis | Date: | Tue, 22 Sep 2026 19:31:30 +0000 |
| Subject: | Re: [RFC] Time\Instant and Time\Clock | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-132597@lists.php.net to get a copy of this message | ||
On 2026-09-22 19:51, Seifeddine Gmati wrote:
I agree that wall-clock time will be used more often, but I’m not convinced thatHi! Is this not an argument FORInstantis necessarily simpler or clearer thanSystemTime. Arguably, the latter communicates more directly that the value comes from the system clock and is subject to clock adjustments. That said, let’s see what Derick and others think about the naming.
Instant instead of against it?
SystemTime sounds more like something that would belong in that `Clock
namespace while Instant represents a point in time that might well be
far before or after the existence of the system itself. It does not
advertise any relation to the system or wall clock. It could be the time
of the big bang. Naming it SystemTime wouldn't make any sense.
BR,
Juris