Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Set timezone, then output current time
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:26 p.m.
FORMAT:
Text only
SIZE:
151 Bytes
Raw
Download
Tweet
HITS:
213
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
date_default_timezone_set("America/New_York");
echo "The time is " . date("h:i:sa");
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus