Last active
June 19, 2019 14:52
-
-
Save YurePereira/3f41f43826254951702f35e893b33dc3 to your computer and use it in GitHub Desktop.
Pegendo o intervalo de diferença entre duas datas.
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
| <?php | |
| $dateTime1 = new DateTime('2016-12-01 12:10:15'); | |
| $dateTime2 = new DateTime('2017-01-08 08:18:09'); | |
| $dateInterval = $dateTime1->diff($dateTime2); | |
| print_r($dateInterval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment