The Valtaran Calendar

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). function updateInGameTime { // Get the current server time var serverTime = new Date;

// Set the starting date of the server var startingDate = new Date("2023-05-01");

// Calculate the time difference in minutes 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);