Answers for "convert years to seconds"

PHP
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
0

bash convert seconds to date

date -u -d @$i +%H:%M:%S
Posted by: Guest on September-10-2020

Code answers related to "convert years to seconds"

Browse Popular Code Answers by Language