Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add seconds to datetime php

<?php 
$date = new DateTime();
echo $date->getTimestamp(). "<br>";
$date->add(new DateInterval('PT674165S')); // adds 674165 secs
echo $date->getTimestamp();
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #seconds #datetime #php
ADD COMMENT
Topic
Name
7+7 =