Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This is a quick demonstration of getting the current time with PHP
- * using the built-in APIs. Simple.
- *
- * @author: Shaun B
- * @date: 2012-10-23
- **/
- $timeZone = date_default_timezone_get();
- if( $timeZone != 'Europe/London' ) {
- // Set your own time zone if needed...
- date_default_timezone_set('Europe/London');
- }
- $timeStamp = strtotime('now');
- echo $timeStamp . ' becomes ' . date('l dS \o\f F Y h:i:s A', $timeStamp)
- . ' when converted to Human. <br />';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement