{"input":"2026-07-10 15:00","from":"Europe/Berlin","to":"America/New_York","utc":"2026-07-10T13:00:00.000Z","source":{"local":"2026-07-10 15:00:00","offset":"+02:00"},"result":{"local":"2026-07-10 09:00:00","offset":"-04:00"}}
curl --location --request GET 'https://zylalabs.com/api/13149/time+zone+clock+converter+api/26695/convert+date+and+time+between+zones' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 Time Zone Clock Converter API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
Time zone math without the headaches. Convert a wall-clock date and time from one zone to another with daylight saving handled correctly, ask for the current time of any zone with its offset, or list all supported zone names.
Ideal for scheduling meetings across offices, showing event times in each user local zone, and normalizing timestamps in logs and bookings.
Each endpoint returns JSON data that includes the converted date and time, local times in both source and target zones, their respective offsets, and the universal time (UTC) for the conversion.
The key fields in the response include "input" (original date/time), "from" (source zone), "to" (target zone), "utc" (universal time), "source" (local time and offset in the source zone), and "result" (local time and offset in the target zone).
The main parameters for the conversion endpoint are "input" (date and time), "from" (source time zone), and "to" (target time zone). Users must provide valid time zone identifiers for accurate conversions.
The response data is structured in a JSON format with nested objects. The main object contains fields for input, source, and result, allowing users to easily access both local times and offsets for the specified zones.
典型的用例包括在不同的时区之间安排会议 在用户的本地时区显示事件时间 以及标准化日志和预订中的时间戳以确保各地区的一致性
Data accuracy is maintained by following the standard worldwide zone database, which includes up-to-date daylight saving rules and time zone information, ensuring reliable conversions.
The API covers all global time zones, including major cities and regions, allowing users to convert times between any supported zones worldwide.
用户可以通过提取本地时间和时区偏移量来利用返回的数据,以确保用户根据各自的时区看到准确的时间