-
-
Save kidker/30a3ee9e263f9588df2ca353253ab069 to your computer and use it in GitHub Desktop.
Difference Between Two Timestamps PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ts1 = strtotime($start); | |
$ts2 = strtotime($end); | |
$seconds_diff = $ts2 - $ts1; | |
$time = ($seconds_diff/3600); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment