Jump to content

Z12950: Difference between revisions

M530x529S10018470x471S10641507x501S26505486x480S21600500x494 Wikifunctions
No edit summary
No edit summary
M545x510S1ed28456x491S1ed20484x491S26606515x494 14 S38a00464x490 M545x510S1ed28456x491S1ed20484x491S26606515x494 14 S38a00464x490
"Z61K1": "javascript"
"Z61K1": "javascript"
},
},
"Z16K2": "function Z12926(Z12926K1, Z12926K2, Z12926K3) {\r\n const yearOffset = 594;\r\n\r\n const monthMap = [\r\n 'Boishakh', 'Joishtho', 'Ashar', 'Shrabon',\r\n 'Bhadro', 'Ashwin', 'Kartik', 'Agrahayan',\r\n 'Poush', 'Magh', 'Falgun', 'Chaitro'\r\n ];\r\n\r\n const startDates = [\r\n new Date(594, 3, 14), new Date(594, 4, 14), new Date(594, 5, 14),\r\n new Date(594, 6, 15), new Date(594, 7, 16), new Date(594, 8, 16),\r\n new Date(594, 9, 16), new Date(594, 10, 15), new Date(594, 11, 15),\r\n new Date(595, 0, 14), new Date(595, 1, 13), new Date(595, 2, 15)\r\n ];\r\n\r\n const gYear = Z12926K1;\r\n const gMonth = Z12926K2 - 1;\r\n const gDate = Z12926K3;\r\n\r\n const startDate = startDates[gMonth];\r\n let bYear = gYear - yearOffset + startDate.getFullYear();\r\n const bMonth = monthMap[startDate.getMonth()];\r\n\r\n let bDate = gDate - startDate.getDate() + 1;\r\n\r\n if (bDate \u003C= 0) {\r\n const prevMonth = gMonth === 0 ? 11 : gMonth - 1;\r\n const prevStartDate = startDates[prevMonth];\r\n const daysInPrevMonth = new Date(gYear, gMonth, 0).getDate(); // Get number of days in previous month\r\n bDate = daysInPrevMonth + bDate; // Adjusting the date\r\n\r\n if (prevMonth === 11 \u0026\u0026 gMonth === 2) {\r\n bYear--;\r\n }\r\n }\r\n\r\n return `${bDate} ${bMonth} ${bYear}`;\r\n}\r\n"
"Z16K2": "function Z12926(Z12926K1, Z12926K2, Z12926K3) {\r\n const yearOffset = 594;\r\n\r\n const monthMap = [\r\n 'Boishakh', 'Joishtho', 'Ashar', 'Shrabon',\r\n 'Bhadro', 'Ashwin', 'Kartik', 'Agrahayan',\r\n 'Poush', 'Magh', 'Falgun', 'Chaitro'\r\n ];\r\n\r\n const startDates = [\r\n new Date(594, 2, 14), new Date(594, 3, 14), new Date(594, 4, 14),\r\n new Date(594, 5, 15), new Date(594, 6, 16), new Date(594, 7, 16),\r\n new Date(594, 8, 16), new Date(594, 9, 15), new Date(594, 10, 15),\r\n new Date(594, 11, 15), new Date(595, 0, 14), new Date(595, 1, 13)\r\n ];\r\n\r\n const gYear = Z12926K1;\r\n const gMonth = Z12926K2 - 1;\r\n const gDate = Z12926K3;\r\n\r\n const startDate = startDates[gMonth];\r\n let bYear = gYear - yearOffset + startDate.getFullYear();\r\n const bMonth = monthMap[startDate.getMonth()];\r\n\r\n let bDate = gDate - startDate.getDate() + 1;\r\n\r\n if (bDate \u003C= 0) {\r\n const prevMonth = gMonth === 0 ? 11 : gMonth - 1;\r\n const prevStartDate = startDates[prevMonth];\r\n const daysInPrevMonth = new Date(gYear, gMonth, 0).getDate();\r\n bDate = daysInPrevMonth + bDate; \r\n\r\n if (prevMonth === 11 \u0026\u0026 gMonth === 2) {\r\n bYear--;\r\n }\r\n }\r\n\r\n if (startDate.getMonth() === 0 \u0026\u0026 gMonth === 2 \u0026\u0026 gDate \u003C 14) {\r\n bYear--;\r\n }\r\n\r\n return `${bDate} ${bMonth} ${bYear}`;\r\n}"
}
}
},
},

M513x542S1ce50491x458S22a00492x492S14c50487x511 M519x539S14402488x485S1440a481x461S22b04503x509 M536x521S2ff00482x483S10011515x491S28108515x461 17:45, 29 M521x543S19220500x474S1f720495x498S11920494x517S2a20c479x457 2024

This page displays in a limited way without JavaScript.
M513x542S1ce50491x458S22a00492x492S14c50487x511 M530x529S10018470x471S10641507x501S26505486x480S21600500x494 https://www.wikifunctions.org/w/index.php?title=Z12950&oldid=77997