Answers for "get the amount of second to specific date php"

PHP
2

php start of day epoch

$beginOfDay = strtotime("today", $timestamp);
$endOfDay   = strtotime("tomorrow", $beginOfDay) - 1;
Posted by: Guest on September-15-2020
1

add seconds to datetime php

<?php 
$date = new DateTime();
echo $date->getTimestamp(). "<br>";
$date->add(new DateInterval('PT674165S')); // adds 674165 secs
echo $date->getTimestamp();
?>
Posted by: Guest on July-06-2020

Code answers related to "get the amount of second to specific date php"

Browse Popular Code Answers by Language