This script is copyright (c) 1999-2000 www.MainCentral.com. All Rights Reserved.

You may modify and distribute this script as long as this header is above all.
Please visit http://www.MainCentral.com
Copyright Notice:
	This script may only be used if the copyright, and footers are intact.
	This script was created in hope that it may be useful to you, but is WITHOUT ANY WARRANTY; AS IS

Script name: Sig Fig Date
Version: 1.0
Description: This program uses SSI to print a date and time into your site with very customizable formats.

Content
	Configuration
	Installation
	Important Notes

Configuration
-	$OffSet
	Offsets your localtime... lets say your local time is 10pm
	but server is 12pm .. set this variable to $OffSet = -2; to
	make it get the local (10pm) time.

-	$dateformat
	This valuable defines how the time and date will be printed.

	-The following are tags which can be used: (tags MUST be lower case)
		-hour24		- Displays Hour in 24 hour format
		-hour12		- Displays Hour in 12 hour format
		-minute		- Displays Minute
		-second		- Displays Second
		-ampm		- Displays AM/PM or defined word like "Morning" or "Evening"
					($am / $pm variables - see below)
		
		-dayname	- Displays Day name (Monday, .., Friday)
		-daynum		- Displays day number of month (*21* May)
		-monthname	- Displays Month name (January, .., December)
		-monthnum	- Displays Month number (January = *1*, ...)

		-year		- Displays Year in normal digits (2020)
		-sigyear	- Displays Year in Sig Fig digits (2020 = 2.020)

	-Examples:
		$dateformat = "-hour:-minute:-second";
			- "11:32:11"
		$dateformat = "Hour: -hour12 Minute: -minute Second: -second Light: -ampm";
			- "Hour: 11 Minute: 32 Second: 11 Light: Morning"
		$dateformat = "-dayname -hour24 -monthname -year";
			- "Monday 23 January 2020"

-	$am
	Defines the word for AM
	- You can put something like "morning" or "am" or "AM" or anything you want.

-	$pm
	Defines the word for PM
	- You can put something like "evening" or "pm" or "PM" or anything you want.


Installation
	Define the configuration.
	This is not required, but if you want, you can put a link to:
		 http://www.MainCentral.com"
	That's it! Enjoy!

IMPORTANT NOTES:
	1> All tags are lower case, if they are not lower case,
	then the script will print out the tag.
		$dateformat = "-Hour:-minute";  #  Will Print "-Hour:32"
	2> The script _only_ replaces _tags_, everything else will be _printed_.
	3> Make sure the tags start with a minus. "-"

How to use
	In the HTML code of your web pages, insert this:
	<!--#exec cgi="/cgi-bin/sigfigdate.cgi"-->
	* Make sure that you paste it as HTML CODE, and not text.