Custom Connector

TimeZoneDB Connector

Global

The TimeZoneDB Connector provides access to time zone data — supported time zones, local time details, and time conversions between zones. It acts as a proxy supporting listing time zones, retrieving local time data, and converting timestamps between time zones, with JSON and XML response formats.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the TimeZoneDB Connector.

  • listTimeZones. Retrieves a list of supported time zones, optionally filtered by country or zone name.
  • getTimeZone. Retrieves local time data by zone, position, city, or IP (IP lookup requires a premium plan).
  • convertTimeZone. Converts a Unix timestamp between two time zones.
Documentation

Detailed Integration Documentation

List Time Zones Retrieval

ActionlistTimeZones
PurposeRetrieves a comprehensive list of supported time zones, optionally filtered by country code or zone name. Useful for building time-zone selection interfaces.
ParametersRequired:
key – your API key (register at TimeZoneDB). Optional:
format (json/xml, default xml), country (ISO 3166 code, e.g. US), zone (name filter, supports wildcard *, e.g. America*), fields (comma-separated fields).
ConfigurationConfigure the base URL via CONNECTOR_ENV_TIMEZONEDB_BASE_URL.
OutputSuccessful: JSON/XML with status, message, and zones array (countryCode, countryName, zoneName, gmtOffset, dst, timestamp). Failure: status ERROR with message (e.g. invalid API key).
Workflow exampleExecute listTimeZones with key and optional country=US, then populate a time-zone selection dropdown.

Get Time Zone Retrieval

ActiongetTimeZone
PurposeRetrieves detailed local time data by time zone, geographic position, city, or IP address (IP lookup requires a premium plan).
ParametersRequired:
key, by (zone | position | city | ip). Optional:
format, callback (JSONP), fields, zone (if by=zone), lat/lng (if by=position), country/region/city (if by=city), ip (if by=ip).
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON/XML with countryCode, countryName, regionName, cityName, zoneName, abbreviation, gmtOffset, dst, zoneStart, zoneEnd, nextAbbreviation, timestamp, formatted. Failure: status ERROR (e.g. invalid time zone).
Workflow exampleExecute getTimeZone with key, by=zone, zone=America/New_York, then use the local time and DST status for scheduling or display.

Convert Time Zone Retrieval

ActionconvertTimeZone
PurposeConverts a Unix timestamp between two time zones, enabling applications to display or calculate time differences across zones.
ParametersRequired:
key, from (source zone/abbreviation), to (destination zone/abbreviation). Optional:
format, time (Unix timestamp, default current UTC).
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON/XML with fromZoneName, fromAbbreviation, fromTimestamp, toZoneName, toAbbreviation, toTimestamp, toFormatted, offset. Failure: status ERROR (e.g. invalid time zone).
Workflow exampleExecute convertTimeZone with key, from=America/New_York, to=Europe/London, and optional time, then use the offset for time-difference calculations.

Example Workflow: Time Zone Selection and Conversion

Retrieve supported time zonesUse listTimeZones with key and optional country=US to fetch available zones.
Query local timeExecute getTimeZone with by=zone and zone=America/New_York to display local time.
Perform conversionUse convertTimeZone with from=America/New_York, to=Europe/London, and optional time for a scheduling or global-time display.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support