Kramerica Industries, LLC

Jewish Date on Your Site

You can have the Jewish/Hebrew Date on your web site.
Just like this or !
You as the webmaster are in complete control of the font formatting - even use the date within a sentence!
This is NOT a script which calculates the date.
This script only returns the Jewish Date.
The Jewish date is taken from OUR SERVER and prints right on YOUR WEBPAGE.
There is no large overhead! The whole script adds less than 500 bytes to your page weight!
The following line of code is all you need to add to your HTML:

<script type="text/javascript" 

src="http://www.kramericaindustries.com/cal/scripts/?func=jd&gmt=-5&sunset=7&display=eng"></script>


Here's what the query parameters mean:

func=jd
Don't change this. This tells our server you are requesting the Jewish Date function.

gmt=-5
GMT is Greenwich Mean Time. -5 is the offset of GMT where you are located.
New York is 5 hours behind GMT so gmt=-5 .
Los Angeles is 8 hours behind GMT so gmt=-8 .
Jerusalem is 2 hours ahead of GMT so gmt=+2 .

sunset=7
Use this parameter if you would like the Jewish Date to increase at sundown.
The 7 in sunset=7 refers to the time of the evening you would like the day to increase.
You may use also use 24 hour time.
For example: If you want the date to increase at 9:00PM you would use sunset=9 or sunset=21.
If you want the date only to increase at midnight set the parameter to sunset=0 or leave it off completely.

display=eng
The language the date will be displayed in.
Use display=eng for English or display=heb for Hebrew.
If no language is specified it will default to English.


Examples:

Here is a list of some sites making use of this script.


Advanced Notes:

If you are in Greenwich,England, don't want the date to increase at sundown, and want it displayed in English:

<script type="text/javascript" src="http://www.kramericaindustries.com/cal/scripts/?func=jd"></script>

There is a 2 week limit to the offset from GMT.
If you want to display the date for one week from today set gmt=+168. (168 = 24hours * 7days)

You should also note to display Hebrew on a web page you may need to change your Meta Tags to:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-8-i">

doctype=rss1 NEW!!!(as of 10/26/06)
If you wish to receive an XML / RSS feed of the hebrew date use this parameter.
http://www.kramericaindustries.com/cal/scripts/?func=jd&gmt=-5&sunset=7&doctype=rss1
You do not need to use the display parameter with this RSS feed. The date in Hebrew will be the first item returned. The date in English will be the second item returned. The third item returned is the date in Hebrew in the reverse order of item 1. This is necessary for those whose language settings may not display in the correct order. You may click the above link for an example of the feed you will receive. You may still set the GMT and SUNSET parameters! Please note that some RSS aggregators cache the feeds, and the feed may not update in your aggregator as expected!

Fine Print:

This script is provided as a FREE service. However, you may make a donation. Use at your own risk. Some browsers may not support the use of Javascript. Kramerica Industries, LLC assumes no responsibility from the use of this script. If you use this script please e-mail us at info@kramericaindustries.com to let us know in case we have to make updates to the script that may involve changing the code on your page. Suggestions and comments for this and other scripts are always welcome. A link or credit in an appropriate place on your site to Kramerica Industries, LLC would be nice, but is not a requirement.