{"id":"iso-datetime-compare","version":"1.0.0","description":"Compare two strict UTC ISO-8601 datetimes and return -1, 0, or 1.","supported_operations":["iso datetime compare","compare two utc datetimes","datetime ordering"],"unsupported_operations":["leap seconds","time zones","offsets other than Z","fractional seconds","locale"],"semantics":["a and b must match YYYY-MM-DDTHH:MM:SSZ with zero-padded fields and a real proleptic Gregorian UTC civil time, years 0001-9999.","Comparison is on the UTC millisecond timeline (Date.UTC / getUTC*, no local Date getters).","Returns -1 if a is before b, 0 if equal, 1 if a is after b."],"limits":{"min_year":1,"max_year":9999},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["a","b"],"properties":{"a":{"type":"string","minLength":20,"maxLength":20,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"},"b":{"type":"string","minLength":20,"maxLength":20,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["comparison"],"properties":{"comparison":{"type":"integer","enum":[-1,0,1]}}},"examples":[{"input":{"a":"2026-09-15T12:00:00Z","b":"2026-09-15T12:00:01Z"},"output":{"comparison":-1}},{"input":{"a":"2026-09-15T12:00:00Z","b":"2026-09-15T12:00:00Z"},"output":{"comparison":0}}],"execute_url":"/v1/tools/iso-datetime-compare/versions/1.0.0/execute"}