<?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.";
?>
Current Time: 1728960130
Today date: October 14, 2024, 7:42 pm.
Tomorrow's date: October 15, 2024, 12:00 am.
Next week's date: October 21, 2024, 7:42 pm.
Next month's date: November 14, 2024, 7:42 pm.
Next Saturday's date: October 19, 2024, 12:00 am.
Server's time zone: PDT or America/Los_Angeles.
Today's sunrise time in Phoenix: 06:35.
Today's sunset time in Phoenix: 17:51.