{"title":"Convert a Maya Long Count","fields":[{"key":"date","name":"date","kind":"date","required":true,"description":"Proleptic Gregorian date to convert INTO a Long Count. Supply this or longCount, never both and never neither.","example":"2012-12-21"},{"key":"longCount","name":"longCount","kind":"text","required":false,"description":"Dotted Long Count to convert INTO a date, written baktun.katun.tun.winal.kin. Each position is bounded by its own base, and the winal counts to 17 rather than to 19 because eighteen winal make a tun, so 9.12.11.18.0 is rejected as a date that does not exist. Supply this or date, never both and never neither.","example":"13.0.0.0.0","fold":true},{"key":"correlation","name":"correlation","kind":"tiles","required":false,"description":"Which correlation constant ties the day count to a civil date. This is the single choice that shifts every value in the response, so it is a parameter rather than a hidden default, and the resolved value comes back under conventions. \"gmt-584283\" is the commonly accepted constant and the default, and it is the one the major institutional converter runs on. \"martinez-hernandez-584281\" sits two days earlier, \"astronomical-584285\" two days later, and \"martin-skidmore-584286\" three days later, each shifting the Long Count by exactly its difference in days. Four of the eight published constants are offered: the other four sit tens of thousands of days away and are of historical interest only. The 584281 constant is the Martínez Hernández correlation, after Juan Martínez Hernández.","enum":["gmt-584283","martinez-hernandez-584281","astronomical-584285","martin-skidmore-584286"],"default":"gmt-584283","example":"gmt-584283","fold":true}],"hasLang":true,"requiredAnyOf":[["date"],["longCount"]],"groups":[{}],"opensOnLoad":false}