Timezone local to utc
timezone-local-to-utc · version 1.0.0 · Other utilities · free, no key needed
Returns all UTC instants matching a local time, its gap/overlap status, and the disambiguated choice.
Use when you need to: local time to utc with daylight saving · resolve ambiguous local time · find both overlap instants.
Decide before calling
Read the versioned contract and the supported scope below. Reuse timezone-local-to-utc@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-local-to-utc@1.0.0 for local time to utc with daylight saving. 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
- local time to utc with daylight saving
- resolve ambiguous local time
- find both overlap instants
- detect a timezone clock gap
- convert wall clock time to UTC
- Temporal timezone disambiguation
Not supported
- time-zone abbreviations
- dates outside 1970 through 2037
Behavior
- compatible chooses earlier in overlaps and shifts later through gaps, as Temporal.
- Returns zero, one, or two matching instants from tzdata 2025b.
Input
zone(string, required): min length 1; max length 64local_date_time(string, required): min length 16; max length 19disambiguation(one of "compatible", "earlier", "later", "reject", optional): default"compatible"
Output
standard_version(string, required)data_version(string, required)zone(string, required)stored_zone(string, required)status(one of "unique", "gap", "overlap", required)matching_instants(array of string, required): max items 2chosen_instant(string, required)
Limits
- max input bytes: 512
- max matches: 2
Example
Request input:
{
"zone": "America/New_York",
"local_date_time": "2024-11-03T01:30:00",
"disambiguation": "later"
}
Response:
{
"result": {
"standard_version": "IANA tzdata 2025b; RFC 3339; RFC 9557",
"data_version": "2025b",
"zone": "America/New_York",
"stored_zone": "America/New_York",
"status": "overlap",
"matching_instants": [
"2024-11-03T05:30:00Z",
"2024-11-03T06:30:00Z"
],
"chosen_instant": "2024-11-03T06:30:00Z"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "timezone-local-to-utc",
"version": "1.0.0",
"input": {
"zone": "America/New_York",
"local_date_time": "2024-11-03T01:30:00",
"disambiguation": "later"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/timezone-local-to-utc/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"zone":"America/New_York","local_date_time":"2024-11-03T01:30:00","disambiguation":"later"}'
The machine-readable contract is at /v1/tools/timezone-local-to-utc/versions/1.0.0.
CLI
node cli.mjs run timezone-local-to-utc 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Timezone convert: Converts an instant or zoned local time and returns source and target local times and UTC offsets.
- Timezone offset changes: Lists UTC offset changes in a half-open instant range with offsets before and after each change.
- Timezone utc offset: Returns the UTC offset, local date-time, resolved zone, and adjacent offset changes for an instant.
- Epoch to ISO: Convert an exact integer Unix timestamp in seconds, milliseconds, microseconds or nanoseconds to RFC 3339 UTC.
- Geohash convert: Encode decimal coordinates as a bounded Geohash or decode a Geohash to its exact bounding box and midpoint.
- Base64url encode: Encode supplied UTF-8 text or hexadecimal bytes as base64url and return the encoded string.