Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to add hour minute seconds in php datetime

date('Y-m-d H:i',strtotime('+1 hour +20 minutes',strtotime($start)));
Comment

seconds to days hours minutes seconds php

function seconds2human($ss) {
$s = $ss%60;
$m = floor(($ss%3600)/60);
$h = floor(($ss%86400)/3600);
$d = floor(($ss%2592000)/86400);
$M = floor($ss/2592000);

return "$M months, $d days, $h hours, $m minutes, $s seconds";
}
Comment

add seconds to datetime php

<?php 
$date = new DateTime();
echo $date->getTimestamp(). "<br>";
$date->add(new DateInterval('PT674165S')); // adds 674165 secs
echo $date->getTimestamp();
?>
Comment

PREVIOUS NEXT
Code Example
Php :: php check if headers already sent 
Php :: separate numbers with commas laravel 
Php :: php get client mac address 
Php :: concat in where clause laravel query builder 
Php :: php list directories 
Php :: laravel reduce 
Php :: php mysqli fetch single row 
Php :: laravel query latest 
Php :: start someones laravel project 
Php :: get country from clouflare 
Php :: laravel seconds to hours minutes seconds 
Php :: wordpress register post type 
Php :: image store short method in laravel 
Php :: php foreach random 
Php :: laravel unsigned integer 
Php :: php switch statement 
Php :: base url laravel 
Php :: cambiar entre versiones de php linux 
Php :: PHP Read File modes 
Php :: Sending Data over another website via laravel 
Php :: supervisor configuration for laravel queue 
Php :: php if else wordpress 
Php :: Fetch Data From Database With PDO 
Php :: laravel date format 
Php :: how to read data from serial port in php 
Php :: laravel print to log 
Php :: get database columns laravel 
Php :: get post data in laravel 
Php :: date to string php 
Php :: taxonomy_get_children drupal 8 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =