Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php datetime sub minutes

$datetime = new DateTime();

//PT 'TIME' M
//PT30S -> 30 Seconds
//PT30M -> 30 Minutes
//PT30H -> 30 Hours
$datetime->sub(new DateInterval('PT12H30M'));
Comment

PREVIOUS NEXT
Code Example
Php :: add two numbers as string in php 
Php :: How do I convert a string to a number in PHP? 
Php :: php flatten multidimensional array 
Php :: how to get data from a table in laravel 
Php :: php uppercase first letter 
Php :: laravel validation mimes always fails 
Php :: PHP Function to create GUID 
Php :: codeigniter 3 or where not in 
Php :: php artisan ui tailwind css 
Php :: validate laravel 
Php :: create project laravel 
Php :: laravel get image extension 
Php :: check if string starts with php 
Php :: laravel image path 
Php :: how to install php dependencies 
Php :: laravel 6 get user id 
Php :: get permalink by id wordpress 
Php :: laravel get single column value 
Php :: how to make doctrine schema update in symfony 2.8 
Php :: laravel take value from different array by key 
Php :: $conn php 
Php :: symfony see all make commands 
Php :: prettier with php 
Php :: How to run database Query in WordPress? 
Php :: update user role wordpress 
Php :: run a php site 
Php :: php ternary 
Php :: laravel htaccess 
Php :: laravel blade shorthand if 
Php :: carbon subdays 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =