PHPize Online / SQLize Online  /  SQLtest Online

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