Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php add hours to current date

$new_time = date("Y-m-d H:i:s", strtotime('+5 hours'));
Comment

add hour minute in datetime in php

$minutes_to_add = 5;

$time = new DateTime('2011-11-17 05:05');
$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));

$stamp = $time->format('Y-m-d H:i');
Comment

PREVIOUS NEXT
Code Example
Php :: image upload form 
Php :: laravel request all delete _token 
Php :: php generate random alphanumeric string 
Php :: how to get category from post id 
Php :: delete image from public folder in laravel 
Php :: php get current datetime mysql format 
Php :: composer stripe 
Php :: install zip php extension 
Php :: find word in text in laravel 
Php :: laravel custom model primary Key 
Php :: wordpress disallow_file_edit 
Php :: max_input_time in wordpress 
Php :: select join distinct 
Php :: php get subdomain 
Php :: check if text exists in string php 
Php :: what is app_env in laravel 
Php :: remove comma in numeric in php 
Php :: laravel old request hmtl select 
Php :: php artisan serve not working 
Php :: php get only numbers from string 
Php :: php delete array item by value 
Php :: base64 encode username password php example 
Php :: laravel validate number to be at least 3 digits 
Php :: laravel between dates 
Php :: laravel rename column 
Php :: wp php related post by category 
Php :: laravel 8 bootstrap pagination fix 
Php :: session_destroy not working 
Php :: Get PHP Date Time Difference in Days, Hours, Minutes, and Seconds 
Php :: laravel validation unique email 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =