Skip to content

Instantly share code, notes, and snippets.

@CodeNegar
Created July 17, 2012 10:52
Show Gist options
  • Save CodeNegar/3128698 to your computer and use it in GitHub Desktop.
Save CodeNegar/3128698 to your computer and use it in GitHub Desktop.
php: get local time, region time and date
<?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