#!/usr/bin/sh
#
# Example CGI program that displays the time in an HTML document.
#
# Sid Bytheway
# Administrative Computing Services
# August 1995
#

# Set Time zone variable so time is adjusted to Utah, rather than Greenwich.
# --------------------------------------------------
TZ="MST7MDT"
export TZ

# Get the current date and time.
# --------------------------------------------------
DATE=`/bin/date +'%B %d, %Y'`
TIME=`/bin/date +'%T'`

# Send the data to the client.
# --------------------------------------------------
cat <<EOF
Content-type: text/html

<html>
<head>
<title>The Current Date and Time</title>
</head>
<body>
<h1>The Current Date and Time</h1>
<hr>
Today's date is: <b>$DATE</b><br>
The Current time is: <b>$TIME</b>
</body>
</html>
EOF


