Valtaran calendar: Difference between revisions

From Alathra Wiki
Content added Content deleted
m (added the accurate tine dispaly)
m (added acccurate time stamps)
Line 1: Line 1:
The Valtaran calendar was a calendar created in 251 BCW by [[King Hadas I]]. Originally the start of year 0 was defined by the birth of King Hadas I but was later changed in 1 ACW by [[Gem Valtara]] to year 0 ACW begining during the [[Treaty of Blackthorn]] and 0 BCW as when [[Ignacio Valtara]]´s lords first rebelled. BCW stands for "Before Civil War" and ACW stands for "After Civil War". Originally it was denoted as BH (Before Hadas) and AH (After Hadas) by [[King Hadas I]]. The year has 7 months each containing 72 days which totals to 504 days in a year. The year begins with the month of Hadasum and is followed with the month of Illums then Palise, Lampas, Hortens, Cranans and finally a month named after the current monarch of Valtara. This last month´s name is determined by the following rules: if the monarch has approved any nicknames then that one will be used, if not then their real name will be used (for example the current king of Valtara is called Robert but their nickname is Bob so Bob would be used) after the name of the monarch there will be the suffix -um if the name ends in a consonant and -mu if it ends with a vowel (so the current last month of the Valtaran calendar is bobum, but if the kings name were to be Pedro it would be pedromu). The month isn´t broken up into weeks but into days, the month begins with hethal alc (day one in Valtaran) and ends with hethal kuul adsa ils (day seventy two in Valtaran).
The Valtaran calendar was a calendar created in 251 BCW by [[King Hadas I]]. Originally the start of year 0 was defined by the birth of King Hadas I but was later changed in 1 ACW by [[Gem Valtara]] to year 0 ACW begining during the [[Treaty of Blackthorn]] and 0 BCW as when [[Ignacio Valtara]]´s lords first rebelled. BCW stands for "Before Civil War" and ACW stands for "After Civil War". Originally it was denoted as BH (Before Hadas) and AH (After Hadas) by [[King Hadas I]]. The year has 7 months each containing 72 days which totals to 504 days in a year. The year begins with the month of Hadasum and is followed with the month of Illums then Palise, Lampas, Hortens, Cranans and finally a month named after the current monarch of Valtara. This last month´s name is determined by the following rules: if the monarch has approved any nicknames then that one will be used, if not then their real name will be used (for example the current king of Valtara is called Robert but their nickname is Bob so Bob would be used) after the name of the monarch there will be the suffix -um if the name ends in a consonant and -mu if it ends with a vowel (so the current last month of the Valtaran calendar is bobum, but if the kings name were to be Pedro it would be pedromu). The month isn´t broken up into weeks but into days, the month begins with hethal alc (day one in Valtaran) and ends with hethal kuul adsa ils (day seventy two in Valtaran).
{{Pp-vandalism|small=yes}}
<div id="inGameTime"></div>
{| {{Table|class=floatright}}
<script>
! Calendar !! Today
function updateInGameTime() {
|-
// Get the current server time
! Gregorian
var serverTime = new Date();
| {{#time:j F Y|{{JULIANDAY.TIMESTAMP|{{JULIANDAY|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}}}}}

|-
// Set the starting date of the server
! In-Game
var startingDate = new Date("2023-05-01");
| Year {{#expr: floor((({{#time:U}} - 1627700400) / (604800 * 20)) + 14) }}

{{!}} Month {{#expr: ({{#time:U}} - 1627700400 - (({{#expr: floor((({{#time:U}} - 1627700400) / (604800 * 20)) + 14) - 14) * 604800 * 20)) / (1728000)) / (72 * 20) }}
// Calculate the time difference in minutes
{{!}} Day {{#expr: (({{#time:U}} - 1627700400) % (604800 * 20) - ({{#expr: floor((({{#time:U}} - 1627700400) / (604800 * 20)) + 14) - 14) * 604800 * 20)) / 1200 }}
var timeDifference = (serverTime - startingDate) / (1000 * 60);
|}

// Define the in-game time parameters
var yearLength = 7 * 72 * 20; // Number of minutes in an in-game year
var monthLength = 72 * 20; // Number of minutes in an in-game month
var dayLength = 20; // Number of minutes in an in-game day

// Calculate the in-game time
var inGameYear = Math.floor(timeDifference / yearLength);
var inGameMonth = Math.floor((timeDifference % yearLength) / monthLength);
var inGameDay = Math.floor(((timeDifference % yearLength) % monthLength) / dayLength);

// Update the in-game time on the wiki page
document.getElementById("inGameTime").textContent = "Current in-game time: Year " + (inGameYear + 1) +
", Month " + getMonthName(inGameMonth) + ", Day " + (inGameDay + 1);
}

function getMonthName(month) {
var monthNames = ["Hadasum", "Illums", "Palise", "Lampas", "Hortens", "Cranans", "Bobum"];
return monthNames[month];
}

// Update the in-game time immediately and then every minute
updateInGameTime();
setInterval(updateInGameTime, 60000);
</script>

Revision as of 15:56, 13 May 2023

The Valtaran calendar was a calendar created in 251 BCW by King Hadas I. Originally the start of year 0 was defined by the birth of King Hadas I but was later changed in 1 ACW by Gem Valtara to year 0 ACW begining during the Treaty of Blackthorn and 0 BCW as when Ignacio Valtara´s lords first rebelled. BCW stands for "Before Civil War" and ACW stands for "After Civil War". Originally it was denoted as BH (Before Hadas) and AH (After Hadas) by King Hadas I. The year has 7 months each containing 72 days which totals to 504 days in a year. The year begins with the month of Hadasum and is followed with the month of Illums then Palise, Lampas, Hortens, Cranans and finally a month named after the current monarch of Valtara. This last month´s name is determined by the following rules: if the monarch has approved any nicknames then that one will be used, if not then their real name will be used (for example the current king of Valtara is called Robert but their nickname is Bob so Bob would be used) after the name of the monarch there will be the suffix -um if the name ends in a consonant and -mu if it ends with a vowel (so the current last month of the Valtaran calendar is bobum, but if the kings name were to be Pedro it would be pedromu). The month isn´t broken up into weeks but into days, the month begins with hethal alc (day one in Valtaran) and ends with hethal kuul adsa ils (day seventy two in Valtaran). Template:Pp-vandalism

Calendar Today
Gregorian Error: Invalid time.
In-Game Year 21 Month {{#expr: (1715537405 - 1627700400 - ((Expression error: Unexpected closing bracket. Day {{#expr: ((1715537405 - 1627700400) % (604800 * 20) - (Expression error: Unexpected closing bracket.