Last active
October 18, 2017 12:31
-
-
Save ooscarr/d1132dde312fcbbbcc676a290362fbbe to your computer and use it in GitHub Desktop.
ṔOSIX time in date in GMT-3 (America/Chile summer time) in PHP
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 | |
//Return ṔOSIX time in date in GMT-3 (America/Chile summer time) | |
$offset=3*60*60; //converting 3 hours to seconds. | |
echo gmdate("Y-m-d", $_GET['epoch']-$offset); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment