Timezones¶
Get current time in any timezone and convert times between zones with DST awareness.
apicrate-get-timezone-info¶
Get detailed information about a timezone. Accepts IANA identifiers or common abbreviations. Returns the current time, UTC offset, DST status, and related metadata.
Credit cost: 1 credit per call.
Parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
IANA timezone identifier (e.g. |
Example¶
Request:
{
"name": "apicrate-get-timezone-info",
"arguments": {
"timezone": "America/New_York"
}
}
Response:
{
"timezone": "America/New_York",
"current_time": "2026-03-26T14:30:00-04:00",
"utc_offset": "-04:00",
"utc_offset_seconds": -14400,
"is_dst": true,
"dst_name": "EDT",
"standard_name": "EST",
"country_code": "US"
}
Errors¶
Unknown timezone – unrecognized IANA identifiers or misspelled names are rejected. Use the full IANA format (e.g.
Europe/London, notLondon).Ambiguous abbreviation – some abbreviations map to multiple timezones. For example,
CSTcould mean Central Standard Time (US), China Standard Time, or Cuba Standard Time. When an abbreviation is ambiguous, the server returns an error listing the possible IANA identifiers so you can resubmit with a specific one.
apicrate-convert-time¶
Convert a time from one timezone to another. Returns the converted time in both 24-hour and 12-hour formats, along with UTC offsets and the hour difference between the zones.
Credit cost: 1 credit per call.
Parameters¶
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
Time to convert in |
|
string |
yes |
Source IANA timezone identifier or abbreviation. |
|
string |
yes |
Target IANA timezone identifier or abbreviation. |
|
string |
no |
Date in |
Example¶
Request:
{
"name": "apicrate-convert-time",
"arguments": {
"time": "14:30",
"from_timezone": "America/New_York",
"to_timezone": "Europe/London",
"date": "2026-03-26"
}
}
Response:
{
"from": {
"timezone": "America/New_York",
"time_24h": "14:30:00",
"time_12h": "2:30 PM",
"date": "2026-03-26",
"utc_offset": "-04:00",
"is_dst": true
},
"to": {
"timezone": "Europe/London",
"time_24h": "18:30:00",
"time_12h": "6:30 PM",
"date": "2026-03-26",
"utc_offset": "+00:00",
"is_dst": false
},
"hour_difference": 4
}
Errors¶
Unknown timezone – either
from_timezoneorto_timezoneis not a recognized IANA identifier or abbreviation.Invalid time format – the
timeparameter must be inHH:MMorHH:MM:SS24-hour format. Values like2:30 PMor25:00are rejected.Ambiguous abbreviation – abbreviations that map to multiple timezones (e.g.
CST) are rejected with a list of matching IANA identifiers. Resubmit with the specific identifier.Invalid date – the
dateparameter, if provided, must be a validYYYY-MM-DDstring. Non-existent dates (e.g.2026-02-30) are rejected.