Created
July 17, 2012 10:52
-
-
Save CodeNegar/3128698 to your computer and use it in GitHub Desktop.
php: get local time, region time and date
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 | |
date_default_timezone_set('Asia/Tehran'); | |
echo date("H:i:s"); // prints eg. 04:29:55 tehran local time | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment