לדלג לתוכן

en Gregorian calendar month to JS number Z16132
ממירי הסוג לקוד

מתוך Wikifunctions
אין תקציר עריכה
אין תקציר עריכה
 
(גרסת ביניים אחת של אותו משתמש אינה מוצגת)
שורה 12: שורה 12:
"Z1K1": "Z16",
"Z1K1": "Z16",
"Z16K1": "Z600",
"Z16K1": "Z600",
"Z16K2": "function Z16132( Z16132K1 ) {\n\tWikifunctions.Debug( JSON.stringify( Z16132K1 ) );\n\tlet x = Z16132K1.Z16098K1;\n\tif (typeof x !== 'string') {\n\t\tif (x.Z9K1 !== undefined) {\n\t\t\tx = x.Z9K1;\n\t\t}\n\t\tif (x.Z16098K1 !== undefined) {\n\t\t\tx = x.Z16098K1;\n\t\t}\n\t}\n\tif (typeof x !== 'string') {\n\t\tif (x.Z9K1 !== undefined) {\n\t\t\tx = x.Z9K1;\n\t\t}\n\t\tif (x.Z16098K1 !== undefined) {\n\t\t\tx = x.Z16098K1;\n\t\t}\n\t}\n\tif ( x === 'Z16101' ) return 0;\n\tif ( x === 'Z16102' ) return 1;\n\tif ( x === 'Z16103' ) return 2;\n\tif ( x === 'Z16104' ) return 3;\n\tif ( x === 'Z16105' ) return 4;\n\tif ( x === 'Z16106' ) return 5;\n\tif ( x === 'Z16107' ) return 6;\n\tif ( x === 'Z16108' ) return 7;\n\tif ( x === 'Z16109' ) return 8;\n\tif ( x === 'Z16110' ) return 9;\n\tif ( x === 'Z16111' ) return 10;\n\tif ( x === 'Z16112' ) return 11;\n\treturn 'ERROR: not a month';\n}"
"Z16K2": "function Z16132( Z16132K1 ) {\n\tlet x = Z16132K1.Z16098K1;\n\tif (typeof x !== 'string') {\n\t\tif (x.Z9K1 !== undefined) {\n\t\t\tx = x.Z9K1;\n\t\t}\n\t\tif (x.Z16098K1 !== undefined) {\n\t\t\tx = x.Z16098K1;\n\t\t}\n\t}\n\tif (typeof x !== 'string') {\n\t\tif (x.Z9K1 !== undefined) {\n\t\t\tx = x.Z9K1;\n\t\t}\n\t\tif (x.Z16098K1 !== undefined) {\n\t\t\tx = x.Z16098K1;\n\t\t}\n\t}\n\tif ( x === 'Z16101' ) return 0;\n\tif ( x === 'Z16102' ) return 1;\n\tif ( x === 'Z16103' ) return 2;\n\tif ( x === 'Z16104' ) return 3;\n\tif ( x === 'Z16105' ) return 4;\n\tif ( x === 'Z16106' ) return 5;\n\tif ( x === 'Z16107' ) return 6;\n\tif ( x === 'Z16108' ) return 7;\n\tif ( x === 'Z16109' ) return 8;\n\tif ( x === 'Z16110' ) return 9;\n\tif ( x === 'Z16111' ) return 10;\n\tif ( x === 'Z16112' ) return 11;\n\tthrow Error('not a month');\n}"
},
},
"Z46K4": "number"
"Z46K4": "number"

גרסה אחרונה מ־20:46, 16 במאי 2024

הדף הזה מוצג באופן מוגבל ללא JavaScript