Last active
August 29, 2015 14:01
-
-
Save safecat/0ee392004c3ce468aebb to your computer and use it in GitHub Desktop.
Uniqid to datetime
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 | |
//based on http://jason.pureconcepts.net/2013/09/php-convert-uniqid-to-timestamp/ | |
echo echo date('Y-m-d H:i:s', hexdec(substr('53796ed677000', 0, -5))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment