Created
October 9, 2019 05:20
-
-
Save computingfreak/5f98357c10dba53fde531851d0e4ef66 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$currentTime = date('Y-m-d H:i:s'); | |
var_dump(strtotime($currentTime)); | |
$someDate = strtotime("2019-10-10 00:00:00"); | |
$time = time(); | |
var_dump($currentTime); | |
var_dump($someDate); | |
$diff = $someDate - strtotime($currentTime); | |
var_dump($diff); | |
var_dump($time); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment