Next clock change and a planned time
dst_checkDaylight saving time (DST) check: say when a city's clocks next change, and whether a planned local time is skipped (spring forward) or happens twice (fall back). Use for a meeting time near a DST change, or a local time that may not exist or may be ambiguous. from and to bound the search, YYYY-MM-DD. Pass both or neither. When omitted, the window is today (UTC) through 365 days later. The next change is the first offset change in that window, the same clock-change list used elsewhere on this server. weeks is iso_week and us_week of that next change, or null when the window has none. The change object and a planned time do not repeat the week numbers. planned_time is a local wall time, YYYY-MM-DD HH:MM, in that city. status is unique when that clock time happens once, gap when the clocks skip it (spring forward, including the southern hemisphere), or overlap when it happens twice (clocks go back). shifted is true for a gap or an overlap. utc is the compatible resolution: the later side of a gap and the earlier side of an overlap. Do not treat utc as the only reading when shifted is true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day of the search, YYYY-MM-DD. | |
| city | Yes | City name or a city id from a city search. Spelling and accents are flexible. When several cities share a name, the best match from the site search is used and the others come back in alternatives. | |
| from | No | First day of the search, YYYY-MM-DD. Pass with to, or omit both. | |
| planned_time | No | Local wall time in the city, YYYY-MM-DD HH:MM or YYYY-MM-DDTHH:MM. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| city | Yes | ||
| from | Yes | ||
| error | No | ||
| weeks | Yes | ISO week (Monday start; week 1 contains the year's first Thursday) and US week (Sunday start; 1 January is week 1 of that calendar year). | |
| planned | Yes | ||
| candidates | No | ||
| next_change | Yes | ||
| alternatives | No | Other cities that matched the same name, after the best-ranked city was chosen. The order is the site search order: match, then priority, then population. |