<?php

/**
* Get Current Date and Time
*
* This script gets the server's current
* date and time, then displays it.
* 
* @author		Blaze Script
* @website		https://blazescript.com
* @date			January 2019
*/

// Get a timestamp
$mydate = getdate(date("U"));

// Display and format the timestamp
echo "$mydate[weekday], $mydate[month] $mydate[mday], $mydate[year]<br /><br />";

echo "Seconds: $mydate[seconds]<br />";
echo "Minutes: $mydate[minutes]<br />";
echo "Hour: $mydate[hours]<br />";
echo "Day of the Month: $mydate[mday]<br />";
echo "Day of the Week: $mydate[wday]<br />";
echo "Month: $mydate[mon]<br />";
echo "Year: $mydate[year]<br />";
echo "Day of the Year: $mydate[yday]<br />";
echo "Name of the Weekday: $mydate[weekday]<br />";
echo "Name of the Month: $mydate[month]<br />";
echo "Seconds since Unix Epoch (January 1, 1970): $mydate[0]";

?>