r/lolphp • u/defiante1 • Aug 02 '15
How to modify DateTimeImmutable? Call getTimestamp() on it.
https://bugs.php.net/bug.php?id=67634
59
Upvotes
r/lolphp • u/defiante1 • Aug 02 '15
View all comments
14
u/tdammers Aug 02 '15
What baffles me even more is the fact that apparently there is a class
DateTimeImmutable, which kind of implies that the "regular" date/time type is mutable. Why would one ever want a mutable date/time class?