alman9898

07-11-2004, 01:30 AM

Ok, Im a newbie at Javascript and I have been looking for someone to help me make a script, but they all want money. :rolleyes:

I would like to have a script that displays the date as the ancient Romans would -- this includes the day of the week, date of the month (see below), the month itself, and the year in Roman numerals measured in AUC (ab urbe condita -- from the founding of the city. The Romans started their time from the founding of Rome in 753 BC. So, in order to get the current year in Roman times, just add 753 to the current year -- this year would be 2757 AUC, but use Roman numerals (MMDCCLVII).

So this is the exact format I'd like:

day of week, date of month, month, year (auc) in roman numerals.

***

REFERENCE OF ROMAN DATING SYSTEM

January -- Ianuarius

February -- Februarius

March -- Martius

April -- Aprilis

May -- Maius

June -- Iunius

August -- Augustus

September -- September

October -- October

November -- November

December -- December

dies Solis -- Sunday

dies Lunae -- Monday

dies Martis -- Tuesday

dies Mercurii -- Wednesday

dies Iovis -- Thursday

dies Veneris -- Friday

dies Saturni -- Saturday

***

DAYS OF THE MONTH

The Roman days of the month are a little different to ours. They had key days on each month and each day of the month is given as the number of days (including both the day in question and the key day) to the next key day.

To illustrate this, the key days are:

Kal. (Kalendae) - Kalends is the first day of each month

Non. (Nonae) - Nones are the ninth day before the Ides - i.e. the 5th (or 7th) day

Id. (Idus) - Ides are the 13th day of each month (in March, July, October, and May, the Ides is the 15th day)

For the key day of the month, the day is given by [key day] [month]. So Jan 5th would be Nonae Ianuariis - abbreviated to Non. Ian.

For the day of the month immediately before the key day, the day is given by: 'pridie' [key day] [month of key day]. So the Dec 31st would be pridie Kalendas Ianuarias - abbreviated to prid. Kal. Ian.

For the other days of the month, the day is given by: 'ante diem' [no. days to next key day] [key day] [month of key day] where the number of days to the next key day includes both the day in question and the key day. So the Jan 8th comes 6 days before the Ides of January (8,9,10,11,12,13) and so would be ante diem VI Idus Ianuarias - abbreviated to a.d. VI Id. Ian.

Between 45BC and 8AD, January, March, May, July, September, and November each had 31 days while the other months each had 30 days except February which had 29 days in standard years and 30 days in leap years. In 8AD, this was changed by Emperor Augustus so that his month (August) could have 31 days and the days of the months were rearranged and ended up in their current form.

What I'd like to know is how I would go along addressing the issue with converting regular numbers into Roman numerals and calculating the Kalends, Nones, and Ides of the months.

I know this is an advanced question for a n00b, but I'm making a Web site right now for an internet clan and I thought this would be a cool script to include.

Script Im using until I can get some help:

<script type="text/javascript"><!--

var now = new Date();

var dayNames = new Array("dies Solis", "dies Lunae", "dies Martis", "dies Mercurii",

"dies Iovis", "dies Veneris", "dies Saturni");

var monNames = new Array("Ianuarius", "Februarius", "Martius ",

"Aprilis", "Maius", "Iunius",

"Iulius", "Augustus ", "September",

"October", "November", "December");

var dateNames = new Array("I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII",

"XVIII","XIX","XX","XXI","XXII","XXIII","XXIV","XXV","XXVI","XXVII","XXVIII","XXIX","XXX","XXXI");

document.write(dayNames[now.getDay()] + ", " + dateNames[(now.getDate() - 1)] + " " + monNames[now.getMonth()] + ", " + "MMDCCLVII");

//-->

</script>

I would like to have a script that displays the date as the ancient Romans would -- this includes the day of the week, date of the month (see below), the month itself, and the year in Roman numerals measured in AUC (ab urbe condita -- from the founding of the city. The Romans started their time from the founding of Rome in 753 BC. So, in order to get the current year in Roman times, just add 753 to the current year -- this year would be 2757 AUC, but use Roman numerals (MMDCCLVII).

So this is the exact format I'd like:

day of week, date of month, month, year (auc) in roman numerals.

***

REFERENCE OF ROMAN DATING SYSTEM

January -- Ianuarius

February -- Februarius

March -- Martius

April -- Aprilis

May -- Maius

June -- Iunius

August -- Augustus

September -- September

October -- October

November -- November

December -- December

dies Solis -- Sunday

dies Lunae -- Monday

dies Martis -- Tuesday

dies Mercurii -- Wednesday

dies Iovis -- Thursday

dies Veneris -- Friday

dies Saturni -- Saturday

***

DAYS OF THE MONTH

The Roman days of the month are a little different to ours. They had key days on each month and each day of the month is given as the number of days (including both the day in question and the key day) to the next key day.

To illustrate this, the key days are:

Kal. (Kalendae) - Kalends is the first day of each month

Non. (Nonae) - Nones are the ninth day before the Ides - i.e. the 5th (or 7th) day

Id. (Idus) - Ides are the 13th day of each month (in March, July, October, and May, the Ides is the 15th day)

For the key day of the month, the day is given by [key day] [month]. So Jan 5th would be Nonae Ianuariis - abbreviated to Non. Ian.

For the day of the month immediately before the key day, the day is given by: 'pridie' [key day] [month of key day]. So the Dec 31st would be pridie Kalendas Ianuarias - abbreviated to prid. Kal. Ian.

For the other days of the month, the day is given by: 'ante diem' [no. days to next key day] [key day] [month of key day] where the number of days to the next key day includes both the day in question and the key day. So the Jan 8th comes 6 days before the Ides of January (8,9,10,11,12,13) and so would be ante diem VI Idus Ianuarias - abbreviated to a.d. VI Id. Ian.

Between 45BC and 8AD, January, March, May, July, September, and November each had 31 days while the other months each had 30 days except February which had 29 days in standard years and 30 days in leap years. In 8AD, this was changed by Emperor Augustus so that his month (August) could have 31 days and the days of the months were rearranged and ended up in their current form.

What I'd like to know is how I would go along addressing the issue with converting regular numbers into Roman numerals and calculating the Kalends, Nones, and Ides of the months.

I know this is an advanced question for a n00b, but I'm making a Web site right now for an internet clan and I thought this would be a cool script to include.

Script Im using until I can get some help:

<script type="text/javascript"><!--

var now = new Date();

var dayNames = new Array("dies Solis", "dies Lunae", "dies Martis", "dies Mercurii",

"dies Iovis", "dies Veneris", "dies Saturni");

var monNames = new Array("Ianuarius", "Februarius", "Martius ",

"Aprilis", "Maius", "Iunius",

"Iulius", "Augustus ", "September",

"October", "November", "December");

var dateNames = new Array("I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII","XIII","XIV","XV","XVI","XVII",

"XVIII","XIX","XX","XXI","XXII","XXIII","XXIV","XXV","XXVI","XXVII","XXVIII","XXIX","XXX","XXXI");

document.write(dayNames[now.getDay()] + ", " + dateNames[(now.getDate() - 1)] + " " + monNames[now.getMonth()] + ", " + "MMDCCLVII");

//-->

</script>