-
-
Save ashfame/e93709b755810168ed37 to your computer and use it in GitHub Desktop.
Timestamp of a time in a particular timezone
This file contains hidden or 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 | |
$datetimezone_object = new DateTimeZone('Pacific/Nauru'); // new DateTimeZone('PST'); | |
$date = DateTime::createFromFormat( 'Y-m-d H:i:s', '2014-04-14 05:00:00', $datetimezone_object ); | |
echo $date->getTimestamp(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment