how to add hour minute seconds in php datetime
date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
how to add hour minute seconds in php datetime
date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
add 1 day php datetime
$date = new DateTime('2000-01-01');
$date->add(new DateInterval('P1D'));
add seconds to datetime php
<?php
$date = new DateTime();
echo $date->getTimestamp(). "<br>";
$date->add(new DateInterval('PT674165S')); // adds 674165 secs
echo $date->getTimestamp();
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us