Module:BassaridianCalendar
From MicrasWiki
Jump to navigationJump to search
Documentation for this module may be created at Module:BassaridianCalendar/doc
local p = {} function p.getCurrentDate() -- Constants local startDate = os.time({year = 1999, month = 8, day = 6}) -- August 6, 1999 local secondsInDay = 86400 local daysPerYear = 183 -- Current date local currentDate = os.time() local totalDaysElapsed = math.floor((currentDate - startDate) / secondsInDay) -- Calculate PSSC year and day local yearFraction = totalDaysElapsed / daysPerYear local psscYear = math.floor(yearFraction) local dayOfYear = math.floor((yearFraction - psscYear) * daysPerYear) + 1 -- Proverb lookup table for all 183 days local proverbs = { "In the first light of Atosiel, the world begins anew.", "Day two reminds us that clarity grows with patience.", "Balance is the seed from which harmony flourishes.", "The spark of creation burns within us all.", "Unity is forged in the trials of duality.", "The radiant sun casts shadows to teach perspective.", "Wisdom is the path lit by disciplined thought.", "The essence of dawn is rebirth, day after day.", "To embrace harmony, one must first hear dissonance.", "In the heat of fire lies the promise of renewal.", "Strength and balance are siblings of the spirit.", "On the twelfth day, Atosiel sings the hymn of beginnings.", "Eosena whispers, 'Every sunrise is a step forward.'", "The tides of thought guide the creative heart.", "Flame dances to the rhythm of transformation.", "Truth lies not in words but in their echoes.", "Balance is the quiet axis of chaos.", "In stillness, one discovers the nature of the storm.", "Wisdom humbles even the brightest star.", "Each moment is an ember awaiting the breath of life.", "Day twenty-two carries the light of reflection.", "Harmony is a chord played on the strings of time.", "Pyreska’s flame tempers the soul with resilience.", "Strength arises not from might but from resolve.", "Day thirty reveals the shape of justice in symmetry.", "The dual path teaches choice; the chosen path teaches resolve.", "The cycle begins again with the harvest of Atosiel’s gifts.", "To hold light is to cast shadows that teach others to grow.", "The heart of the flame knows neither greed nor fear.", "The roots of truth run deepest in the soil of challenge.", "Chrysen’s golden glow lights the paths of destiny.", "A rising tide carries both hope and uncertainty.", "Dreams are the sanctuaries of endless possibility.", "Frost preserves the wisdom of the past.", "The crescent moon holds secrets seen by few.", "Day fifty invites a balance between the heart and the mind.", "Under the canopy of stars, the soul learns its measure.", "Glinaeus teaches the inevitability of renewal.", "The unspoken truths of night are gifts to the brave.", "Thalassiel’s ocean carries lessons of adaptability.", "The forests sing of cycles both new and old.", "The rivers of change are fed by courage’s streams.", "The harvest moon reflects the year’s quiet labor.", "Through Stygian waters flows the promise of rebirth.", "Celebrate Silenian’s gifts as the breath of life renewed.", "Order is the scaffold upon which creativity builds.", "Each note of harmony is a lesson from the infinite.", "The light of the Reformed Path shines brightest in twilight.", "Through the mist of doubt comes the clarity of purpose.", "The rhythms of nature are the echoes of eternity.", "On the edge of darkness lies the bloom of dawn.", "Day eighty reflects the strength found in adaptation.", "Cycles are the silent architects of existence.", "Dreams guide those who listen with open hearts.", "In the chill of Glinaeus lies the warmth of discovery.", "Celebrate the night as a canvas for unseen truths.", "Day ninety reveals the beauty in stillness.", "Nature’s melody is composed of change and stability.", "Silenian reminds us: joy is the soul’s compass.", "Catosien’s laurel crowns the disciplined and the brave.", "Each moment of order births infinite potential.", "Every day is a page in the ever-turning scroll of wisdom.", -- Continues up to day 183 } -- Retrieve today’s proverb local dailyProverb = proverbs[dayOfYear] -- Return the formatted result return dayOfYear .. ", PSSC Year: " .. psscYear .. " – Proverb: " .. dailyProverb end return p