We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
<?php require_once __DIR__.'/vendor/autoload.php'; $timeLimit = \DateInterval::createFromDateString('2 hours'); $safeDateTime = new \Safe\DateTimeImmutable(); $phpDateTime = new \DateTimeImmutable(); \var_dump($safeDateTime->modify('+3 hours') < $safeDateTime->add($timeLimit)); // true \var_dump($phpDateTime->modify('+3 hours') < $phpDateTime->add($timeLimit)); // false
Given this snippet, I would expect that both are false, but when using \Safe\DateTimeImmutable I am getting true.
false
\Safe\DateTimeImmutable
true
The text was updated successfully, but these errors were encountered:
Fixed #180
Sorry, something went wrong.
No branches or pull requests
Given this snippet, I would expect that both are
false
, but when using\Safe\DateTimeImmutable
I am gettingtrue
.The text was updated successfully, but these errors were encountered: