Timezone utc offset
timezone-utc-offset · version 1.0.0 · Other utilities · free, no key needed
Returns the UTC offset, local date-time, resolved zone, and adjacent offset changes for an instant.
Use when you need to: timezone dst offset · utc offset of a time zone · find zone offset at an instant.
Decide before calling
Read the versioned contract and the supported scope below. Reuse timezone-utc-offset@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use timezone-utc-offset@1.0.0 for timezone dst offset. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
Supported
- timezone dst offset
- utc offset of a time zone
- find zone offset at an instant
- what local time is this instant
- look up IANA timezone offset
- previous and next timezone change
Not supported
- time-zone abbreviations
- daylight-saving flags
Behavior
- Exact case-sensitive IANA names from tzdata 2025b.
- Instants follow RFC 3339 or integer Unix seconds; coverage is half-open [1970, 2038).
Input
zone(string, required): min length 1; max length 64instant(string or integer, required)
Output
standard_version(string, required)data_version(string, required)zone(string, required)stored_zone(string, required)instant(string, required)utc_offset_seconds(integer, required)utc_offset(string, required)local_date_time(string, required)previous_change(string or null, required)next_change(string or null, required)
Limits
- max input bytes: 512
Example
Request input:
{
"zone": "America/New_York",
"instant": "2024-07-01T12:00:00Z"
}
Response:
{
"result": {
"standard_version": "IANA tzdata 2025b; RFC 3339; RFC 9557",
"data_version": "2025b",
"zone": "America/New_York",
"stored_zone": "America/New_York",
"instant": "2024-07-01T12:00:00Z",
"utc_offset_seconds": -14400,
"utc_offset": "-04:00",
"local_date_time": "2024-07-01T08:00:00",
"previous_change": "2024-03-10T07:00:00Z",
"next_change": "2024-11-03T06:00:00Z"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "timezone-utc-offset",
"version": "1.0.0",
"input": {
"zone": "America/New_York",
"instant": "2024-07-01T12:00:00Z"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/timezone-utc-offset/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"zone":"America/New_York","instant":"2024-07-01T12:00:00Z"}'
The machine-readable contract is at /v1/tools/timezone-utc-offset/versions/1.0.0.
CLI
node cli.mjs run timezone-utc-offset 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Timezone offset changes: Lists UTC offset changes in a half-open instant range with offsets before and after each change.
- Timezone convert: Converts an instant or zoned local time and returns source and target local times and UTC offsets.
- Cron next runs: Compute the next requested UTC fire times for a five-field cron schedule and echo the supplied reference instant.
- Cron previous runs: Compute the previous requested UTC fire times for a five-field cron schedule and echo the supplied reference instant.
- Timezone local to utc: Returns all UTC instants matching a local time, its gap/overlap status, and the disambiguated choice.
- Base64url validate: Check canonical base64url syntax and return validity plus the first invalid character when present.