<?php
$time = time();
echo "Current Time: $time<br>";
$today = date("F j, Y, g:i a");
echo "Today date: $today.<br>";
$tomorrow = date('F j, Y, g:i a', strtotime("tomorrow"));
echo "Tomorrow's date: $tomorrow.<br>";
$nw = date('F j, Y, g:i a', strtotime("+1 week"));
echo "Next week's date: $nw.<br>";
$nm = date('F j, Y, g:i a', strtotime("+1 month"));
echo "Next month's date: $nm.<br>";
$sat = date('F j, Y, g:i a', strtotime("next Saturday"));
echo "Next Saturday's date: $sat.<br>";
$tz = date('T');
$tz2 = date('e');
echo "Server's time zone: $tz or $tz2.<br>";
$sunrise = date_sunrise(time(), SUNFUNCS_RET_STRING, 33, -112, 90, -7);
echo "Today's sunrise time in Phoenix: $sunrise.<br>";
$sunset = date_sunset(time(), SUNFUNCS_RET_STRING, 33, -112, 90, -7);
echo "Today's sunset time in Phoenix: $sunset.<br>";
?>
Current Time: 1714918946
Today date: May 5, 2024, 9:22 am.
Tomorrow's date: May 6, 2024, 12:00 am.
Next week's date: May 12, 2024, 9:22 am.
Next month's date: June 5, 2024, 9:22 am.
Next Saturday's date: May 11, 2024, 12:00 am.
Server's time zone: CDT or America/Chicago.
Today's sunrise time in Phoenix: 05:38.
Today's sunset time in Phoenix: 19:10.
COPYRIGHT © 2015-2024 IHYPRESS.NET. A DIVISION OF IHY PRESS. ALL RIGHTS RESERVED.