Time and Date API: Convert time between cities
Converts a meeting time in one city to local times in other cities, with time zones and 09:00-17:00 working-hours status. Supports dates from 1970 to 2030; ambiguous clock-change times use the first occurrence.
Unofficial. Not affiliated with or endorsed by Time and Date.
Inputs
Values from the run on Oct 31, 2026, shown under Output.
- Date optional
date Starting city date as YYYY-MM-DD, for example 2026-10-15. Defaults to today in the starting city.
2026-10-15
- Time, required
time Meeting time in the starting city, for example 15:00 or 3pm.
3pm
- From City, required
from_city Starting city, for example New York.
New York
- To Cities, required
to_cities Destination city names (at least one), for example London and Tokyo.
- London
- Tokyo
List of text.
Input as JSON
{ "date": "2026-10-15", "time": "3pm", "from_city": "New York", "to_cities": [ "London", "Tokyo" ]}Output
{ "cities": [ { "city": "New York", "country": "USA", "weekday": "Thursday", "page_link": "https://www.timeanddate.com/worldclock/usa/new-york" , "local_date": "2026-10-15", "local_time": "2026-10-15T15:00:00-04:00", "utc_offset": "UTC-04:00", "time_as_text": "Thu 3:00 PM", "within_working_hours": "yes", "time_zone_abbreviation": "EDT" }, { "city": "London", "country": "United Kingdom", "weekday": "Thursday", "page_link": "https://www.timeanddate.com/worldclock/uk/london" , "local_date": "2026-10-15", "local_time": "2026-10-15T20:00:00+01:00", "utc_offset": "UTC+01:00", "time_as_text": "Thu 8:00 PM", "within_working_hours": "no", "time_zone_abbreviation": "BST" }, { "city": "Tokyo", "country": "Japan", "weekday": "Friday", "page_link": "https://www.timeanddate.com/worldclock/japan/tokyo" , "local_date": "2026-10-16", "local_time": "2026-10-16T04:00:00+09:00", "utc_offset": "UTC+09:00", "time_as_text": "Fri 4:00 AM", "within_working_hours": "no", "time_zone_abbreviation": "JST" } ]}Code
curl https://api.fous.com/v1/runs \ -H "Authorization: Bearer $FOUS_API_KEY" \ -H "Content-Type: application/json" \ -d '{"method":"timeanddate.com/convert_time_between_cities","input":{"date":"2026-10-15","time":"3pm","from_city":"New York","to_cities":["London","Tokyo"]}}' # Save as fous.py, then run: python3 fous.pyimport json, os, timefrom urllib.error import HTTPErrorfrom urllib.request import Request, urlopenAPI = "https://api.fous.com/v1/runs" KEY = os.environ["FOUS_API_KEY"]HEADERS = { "Authorization": f"Bearer {KEY}", "Content-Type": "application/json" ,}def call(url, body=None): data = json.dumps(body).encode() if body else None request = Request(url, data, HEADERS) try: with urlopen(request, timeout=120) as r: return r.status, json.load(r) except HTTPError as error: message = json.load(error)["error"]["message"] raise RuntimeError(message) from errorstatus, run = call(API, { "method": "timeanddate.com/convert_time_between_cities" , "input": { "date": "2026-10-15", "time": "3pm", "from_city": "New York", "to_cities": [ "London", "Tokyo" ] }})# 202: still going after 30 s. Ask again until it ends.while status == 202: time.sleep(2) status, run = call(f"{API}/{run['id']}")print(json.dumps(run["data"], indent=2))// Save as fous.mjs, then run: node fous.mjsconst api = "https://api.fous.com/v1/runs" ;const headers = { Authorization: `Bearer ${process.env.FOUS_API_KEY}`, "Content-Type": "application/json" ,};let response = await fetch(api, { method: "POST", headers, body: JSON.stringify({ "method": "timeanddate.com/convert_time_between_cities" , "input": { "date": "2026-10-15", "time": "3pm", "from_city": "New York", "to_cities": [ "London", "Tokyo" ] } }), signal: AbortSignal.timeout(120_000),});let run = await response.json();// 202: still going after 30 s. Ask again until it ends.while (response.status === 202) { await new Promise((done) => setTimeout(done, 2_000)); response = await fetch(`${api}/${run.id}`, { headers }); run = await response.json();}if (!response.ok) throw new Error(run.error.message);console.log(run.data);# Connect your agent to Fous once, over MCP (Streamable HTTP):# https://api.fous.com/mcp# Set FOUS_API_KEY first: create a key at https://app.fous.com/keys.# Claude Codeclaude mcp add \ --scope user \ --transport http fous https://api.fous.com/mcp \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Codexcodex mcp add fous \ --url https://api.fous.com/mcp \ --bearer-token-env-var FOUS_API_KEY# Cursor, VS Code, Windsurf, Cline and morenpx -y add-mcp https://api.fous.com/mcp -g -n fous \ --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"# Then ask your agent:# "Use Fous to run timeanddate.com/convert_time_between_cities# with {"date":"2026-10-15","time":"3pm","from_city":"New York","to_cities":["London","Tokyo"]}"Over HTTP, the answer’s data holds the output. A run still going after 30 seconds answers 202 with its id: ask GET /v1/runs/{id} until it ends.
Schema
Input schema
{ "type": "object", "required": [ "time", "from_city", "to_cities" ], "properties": { "date": { "type": "string", "description": "Starting city date as YYYY-MM-DD, for example 2026-10-15. Defaults to today in the starting city." }, "time": { "type": "string", "description": "Meeting time in the starting city, for example 15:00 or 3pm." }, "from_city": { "type": "string", "description": "Starting city, for example New York." }, "to_cities": { "type": "array", "items": { "type": "string" }, "description": "Destination city names (at least one), for example London and Tokyo." } }}Output schema
{ "type": "object", "required": [ "cities" ], "properties": { "cities": { "type": "array", "items": { "type": "object", "required": [ "city", "country", "local_date", "local_time", "time_as_text", "weekday", "time_zone_abbreviation", "utc_offset", "within_working_hours", "page_link" ], "properties": { "city": { "type": "string" }, "country": { "type": "string" }, "weekday": { "type": "string" }, "page_link": { "type": "string" }, "local_date": { "type": "string" }, "local_time": { "type": "string" }, "utc_offset": { "type": "string" }, "time_as_text": { "type": "string" }, "within_working_hours": { "type": "string" }, "time_zone_abbreviation": { "type": "string" } }, "additionalProperties": false } } }, "additionalProperties": false}- Price
- 1 credit per completed run (1¢ with pay as you go); failed runs are free.
- Method
timeanddate.com/convert_time_between_cities- Returns
- city, country, local date and time, weekday, time zone abbreviation, UTC offset, working-hours status, page link
Use it from your agent
Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method timeanddate.com/convert_time_between_cities with the inputs above.
Ask your agent
- If I schedule a call for 3pm in New York on October 15, 2026, what time will it be in London and Tokyo, and is that within business hours there?
- Using timeanddate.com, convert 9:30 on 2025-11-03 in Sydney to local times in Berlin, São Paulo, and Toronto.
- What time is 14:00 Paris time tomorrow in Mumbai and Los Angeles? I need to know whether each falls between 9 and 5.
- Team standup is at 8am in Chicago on March 9, 2026 — show me the local time, weekday, and UTC offset for Singapore, Dubai, and Auckland.
- Check on timeanddate what 4:30pm in Johannesburg on 2026-06-22 is in Seoul and Mexico City, including time zone abbreviations.
See more
All Time and Date methodsGets the current local time, time zone, and next daylight saving change for a city listed on Time and Date. Add a state or country to distinguish cities with the same name.
timeanddate.com/get_time_in_cityGets daily sunrise, sunset, solar noon, day length and civil twilight for a place from Time and Date, for one or more consecutive days. Times are local with UTC offset; days without sunrise or sunset are marked.
timeanddate.com/get_sunrise_and_sunsetCounts weekdays between two dates, excluding nationwide public holidays or, optionally, public holidays in a state or province, from Time and Date's published holiday calendar.
timeanddate.com/count_business_daysCompares living costs in two Numbeo cities: six price and purchasing-power differences, plus the monthly take-home salary needed in the destination for a similar standard of living (rent assumed in both cities).
numbeo.com/compare_cost_of_livingChecks reservation times at an OpenTable restaurant by name and city or restaurant link. Shows times near the requested time; availability can change, and some restaurants limit online bookings for large parties.
opentable.com/check_restaurant_availabilityFinds upcoming public Meetup events by topic and city, sorted by start time. Only events that mention the topic are included; external costs and undisclosed venues may not be shown.
meetup.com/search_eventsFinds OpenTable restaurants with bookable slots within two hours of the selected time in a city or neighborhood, in OpenTable search order, optionally for one cuisine. Examines up to 300 listings; availability may change.
opentable.com/search_available_tablesGets XE's daily mid-market exchange rate for a past UTC date and converts an amount with it.
xe.com/get_historical_rate