Ir para o conteúdo

Z12950: mudanças entre as edições

De Wikifunctions
Sem resumo de edição
 
Sem resumo de edição
Linha 14: Linha 14:
"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 const bYear = yearOffset + gYear - startDate.getFullYear();\r\n const bMonth = monthMap[startDate.getMonth()];\r\n\r\n return `${gDate} ${bMonth} ${bYear}`;\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, 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 const bYear = gYear - yearOffset + startDate.getFullYear();\r\n const bMonth = monthMap[startDate.getMonth()];\r\n const bDate = gDate - startDate.getDate() + 1;\r\n\r\n return `${bDate} ${bMonth} ${bYear}`;\r\n}\r\n"
}
}
},
},

Edição das 17h38min de 29 de janeiro de 2024

Esta página é exibida de forma limitada sem JavaScript.