View source for Module:Today/GA
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
------ IMPERIAL GALACTYAN CALENDAR ------
local CustomCalendar = {}
-- Define month names and days per month
local monthNames = {
"Month 1", "Month 2", "Month 3", "Month 4", "Month 5",
"Month 6", "Month 7", "Month 8", "Month 9", "Month 10"
}
local daysPerMonth = 59
-- Function to convert Gregorian date to custom calendar date
function CustomCalendar.convertToCustomCalendar(gregorianYear, gregorianMonth, gregorianDay)
-- Conversion logic goes here
-- Calculate total days passed in Gregorian calendar
local totalDays = (gregorianYear - 1) * 365 + math.floor((gregorianYear - 1) / 4) -- Basic leap year handling
-- Add days of the months that have passed
for i = 1, gregorianMonth - 1 do
000
1:0
Template used on this page:
Return to Module:Today/GA.