You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php$datetime = date_create('now');
$datetime->setTime(1,1,1,1 /* If set to any other number, it works fine */);
$datetime->modify('-100 ms');
var_dump($datetime);
<?php$datetime = date_create('now');
$datetime->setTime(1,1,1,1 /* If set to any other number, it works fine */);
var_dump($datetime);
$datetime->modify('-100 ms');
var_dump($datetime);
Description
Example: https://stackoverflow.com/questions/76384161/php-date-modify-returned-negative-microseconds
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
7.2 and greater
Operating System
No response
The text was updated successfully, but these errors were encountered: