PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $date = '2022-11-22T18:40:00Z'; $createdAt = new DateTimeImmutable($date); $currentTime = new DateTimeImmutable(); $modifier = sprintf('+ %d minutes', 2); $modifiedDate = $createdAt->modify($modifier); var_dump( $currentTime < $modifiedDate );
Show:  
Copy Clear