no-api-key
time
timezones
dst

DST transitions: next daylight-saving time changes for an IANA time zone

DST transitions: list the daylight-saving time changes for an IANA time zone over a date range: the exact instant of each shift, the offset before and after, and whether local clocks jump forward or back. Returns the current offset and DST state, and the next transition from a given instant. Zones without DST return an empty transition list rather than an error.

Output (data): zone, observes_dst, current {offset, offset_seconds, abbreviation, dst}, next (first transition after from, or null), transitions [{at, local_before, local_after, offset_before, offset_after, delta_seconds, direction forward|back, abbreviation_before, abbreviation_after}].

Deterministic only when the query fixes the instant; otherwise the answer depends on the current time and is served no-store. meta.deterministic says which.

Price: $0.05 USDC per call (x402, Base). Route contract version 1.0.0. Docs: https://api.duoleads.com/docs#time-dst

get/v1/time/dst

Request

  • Base URL: https://api.duoleads.com
  • URL: https://api.duoleads.com/v1/time/dst
  • Auth: none declared

Query parameters

zonestring required

IANA time zone id. Accepted: an IANA time zone id, e.g. Europe/Amsterdam.

fromstring

Start of the range: RFC 3339 or YYYY-MM-DD. Default now. Accepted: RFC 3339 timestamp or YYYY-MM-DD.

yearsinteger

Length of the range in years, 1-10. Default 2. Accepted: integer 1-10.

Response

Paid and settled. data is route-specific; a route that judges its input returns 200 with data.valid: false for a bad value.

okunknown required
route'/v1/time/dst' required
version'1.0.0' required

Changes

No recorded changes to this operation across all 1 revision of this API.