convert_date
Convert between a calendar date, its day number, and its Gregorian date. Give exactly one of date, day_number, gregorian or one of their plurals dates, day_numbers, gregorians; all three forms come back, with whether the year is a leap year, how long it is, and any named period of the year the date falls in. USE THE PLURALS FOR MORE THAN ONE DATE: the calendar spec travels on every call, so fifteen dates in one call cost the spec once instead of fifteen times, and there is no reason to work an answer out by hand to save a round trip. Answers up to 1000 in one call, in the order given, as {count, ok, results}. Prefer this over one call per item: the spec travels once instead of once each. Exact arithmetic; never estimates. A date that does not exist in this calendar is refused with the real range, never rounded to a nearby day.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| time | No | ||
| dates | No | ||
| calendar | Yes | ||
| on_error | No | fail | |
| gregorian | No | ||
| day_number | No | ||
| gregorians | No | ||
| day_numbers | No |