difference between two timestamps php
$datetime1 = new DateTime('2016-11-30 03:55:06');//start time
$datetime2 = new DateTime('2016-11-30 11:55:06');//end time
$interval = $datetime1->diff($datetime2);
echo $interval->format('%Y years %m months %d days %H hours %i minutes %s seconds');//00 years 0 months 0 days 08 hours 0 minutes 0 seconds
Also in PHP:
- check if string is in string php
- file_get_contents base64 php
- error log display
- disable errors php
- date php D
- code php ajout heure
- Notice: Array to string conversion php
- convert date time to timestamp php
- ()w3schools php date_format_string
- echo date('Y-m-d'); python
- cors header ‘access-control-allow-origin’ missing IN PARTICULAR CAKEPHP API
- codeigniter get last inserted data row
- create timestamp from string php
- aadd day in date php
- divided by 3 php
- add date days php
- datetime w3schools php
- create database in phpmyadmin
- all words capital php
- 12:30 am time format validation in laravel
- How to fix undefined index: name in PackageManifest.php line 131 error with Composer
- capitalize all letters php
- count column eloquent laravel
- check string in wordjs