Re: Add __toString() to DateInterval

From: Date: Wed, 03 Mar 2021 11:16:02 +0000
Subject: Re: Add __toString() to DateInterval
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-113339@lists.php.net to get a copy of this message
On Wed, Mar 3, 2021 at 1:07 PM Moritz Friedrich <m@9dev.de> wrote:

> but I’m not too fond of the constant - all other built-in date constants
> translate to a string of plain format characters, which isn’t possible in
> this case


Adding another format character (similar to %c used by
DateTimeInterface::format()) would solve that.

-- 
  Best regards,
      Bruce Weirdan                                     mailto:
weirdan@gmail.com


Thread (19 messages)

« previous php.internals (#113339) next »