if FWIW if DateTime::__toString() was just function __toString():string{ return $this->format(\DateTime::RFC3339); }
i certainly wouldn't complain. On Wed, 3 Mar 2021 at 12:16, Bruce Weirdan <weir...@gmail.com> wrote: > 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: > weir...@gmail.com >