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 M = {}
-- Define the number of months and days in each month
local numMonths = 10
local daysPerMonth = 59
-- Function to convert Gregorian date to 10-month calendar date
function M.convertTo10MonthCalendar(year, month, day)
mw.log("Year:", year)
mw.log("Month:", month)
mw.log("Day:", day)
year = tonumber(year)
month = tonumber(month)
day = tonumber(day)
-- Perform calculations here to convert the date
local totalDays = (year - 1) * 365 + math.floor((year - 1) / 4) + day
local monthIndex = math.floor((totalDays - 1) / daysPerMonth) + 1
000
1:0
Template used on this page:
Return to Module:Today/GA.