en Gregorian to Bangla, javascipt Z12950en Implementation
Nėra keitimo santraukos |
Nėra keitimo santraukos |
||
Eilotė 14: | Eilotė 14: | ||
"Z61K1": "javascript" |
"Z61K1": "javascript" |
||
}, |
}, |
||
"Z16K2": "function Z12926(Z12926K1, Z12926K2, Z12926K3) {\r\n const monthName = [\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 gDate = new Date(Z12926K1, Z12926K2 - 1, Z12926K3);\r\n const gYear = gDate.getFullYear();\r\n const gMonth = gDate.getMonth();\r\n const gDay = gDate.getDate();\r\n\r\n let bYear, bMonth, bDay;\r\n\r\n if ((gMonth === 3 \u0026\u0026 gDay \u003E= 14) || gMonth \u003E 3) {\r\n bYear = gYear - 593; \r\n } else {\r\n bYear = gYear - 594;\r\n }\r\n\r\n let bDate = getMonthDate(gDay, gMonth);\r\n\r\n let bDateString = bDate.date + ' ' + monthName[bDate.month] + ' ' + bYear;\r\n\r\n return bDateString;\r\n}\r\n\r\nfunction getMonthDate(gDay, gMonth) {\r\n let bMonth, bDate;\r\n\r\n switch (true) {\r\n case gMonth === 0 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 8;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 0 \u0026\u0026 gDay \u003E 13:\r\n bMonth = 9;\r\n bDate = gDay - |
"Z16K2": "function Z12926(Z12926K1, Z12926K2, Z12926K3) {\r\n const monthName = [\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 gDate = new Date(Z12926K1, Z12926K2 - 1, Z12926K3);\r\n const gYear = gDate.getFullYear();\r\n const gMonth = gDate.getMonth();\r\n const gDay = gDate.getDate();\r\n\r\n let bYear, bMonth, bDay;\r\n\r\n if ((gMonth === 3 \u0026\u0026 gDay \u003E= 14) || gMonth \u003E 3) {\r\n bYear = gYear - 593; \r\n } else {\r\n bYear = gYear - 594;\r\n }\r\n\r\n let bDate = getMonthDate(gDay, gMonth);\r\n\r\n let bDateString = bDate.date + ' ' + monthName[bDate.month] + ' ' + bYear;\r\n\r\n return bDateString;\r\n}\r\n\r\nfunction getMonthDate(gDay, gMonth) {\r\n let bMonth, bDate;\r\n\r\n switch (true) {\r\n case gMonth === 0 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 8;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 0 \u0026\u0026 gDay \u003E 13:\r\n bMonth = 9;\r\n bDate = gDay - 14;\r\n break;\r\n case gMonth === 1 \u0026\u0026 gDay \u003C= 13:\r\n bMonth = 9;\r\n bDate = gDay + 17;\r\n break;\r\n case gMonth === 1 \u0026\u0026 gDay \u003E 12:\r\n bMonth = 10;\r\n bDate = gDay - 13;\r\n break;\r\n case gMonth === 2 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 10;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 2 \u0026\u0026 gDay \u003E 14:\r\n bMonth = 11;\r\n bDate = gDay - 14;\r\n break;\r\n case gMonth === 3 \u0026\u0026 gDay \u003C= 13:\r\n bMonth = 11;\r\n bDate = gDay + 17;\r\n break;\r\n case gMonth === 3 \u0026\u0026 gDay \u003E 13:\r\n bMonth = 0;\r\n bDate = gDay - 13;\r\n break;\r\n case gMonth === 4 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 0;\r\n bDate = gDay + 17;\r\n break;\r\n case gMonth === 4 \u0026\u0026 gDay \u003E 14:\r\n bMonth = 1;\r\n bDate = gDay - 14;\r\n break;\r\n case gMonth === 5 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 1;\r\n bDate = gDay + 17;\r\n break;\r\n case gMonth === 5 \u0026\u0026 gDay \u003E 14:\r\n bMonth = 2;\r\n bDate = gDay - 14;\r\n break;\r\n case gMonth === 6 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 2;\r\n bDate = gDay + 17;\r\n break;\r\n case gMonth === 6 \u0026\u0026 gDay \u003E 14:\r\n bMonth = 3;\r\n bDate = gDay - 14;\r\n break;\r\n case gMonth === 7 \u0026\u0026 gDay \u003C= 15:\r\n bMonth = 3;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 7 \u0026\u0026 gDay \u003E 15:\r\n bMonth = 4;\r\n bDate = gDay - 15;\r\n break;\r\n case gMonth === 8 \u0026\u0026 gDay \u003C= 15:\r\n bMonth = 4;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 8 \u0026\u0026 gDay \u003E 15:\r\n bMonth = 5;\r\n bDate = gDay - 15;\r\n break;\r\n case gMonth === 9 \u0026\u0026 gDay \u003C= 15:\r\n bMonth = 5;\r\n bDate = gDay + 16;\r\n break;\r\n case gMonth === 9 \u0026\u0026 gDay \u003E 15:\r\n bMonth = 6;\r\n bDate = gDay - 15;\r\n break;\r\n case gMonth === 10 \u0026\u0026 gDay \u003C= 15:\r\n bMonth = 6;\r\n bDate = gDay + 15;\r\n break;\r\n case gMonth === 10 \u0026\u0026 gDay \u003E 15:\r\n bMonth = 7;\r\n bDate = gDay - 15;\r\n break;\r\n case gMonth === 11 \u0026\u0026 gDay \u003C= 14:\r\n bMonth = 7;\r\n bDate = gDay + 15;\r\n break;\r\n case gMonth === 11 \u0026\u0026 gDay \u003E 14:\r\n bMonth = 8;\r\n bDate = gDay - 15;\r\n break;\r\n }\r\n\r\n return { month: bMonth, date: bDate };\r\n}" |
||
} |
} |
||
}, |
}, |
15:56, 21 vasarė 2024 atmains
This page displays in a limited way without JavaScript.