Jump to content

en Gregorian calendar month to JS number Z16132
en Type converter to code

Wikifunctions iti'ab
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Pozxáat 12: Pozxáat 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\tx = x.Z9K1;\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"

Latest revision as of 20:46, 16 Tlamacuniltöx 2024

This page displays in a limited way without JavaScript.