GoogleTimeZone Extension

Google Time Zone


About Extension

  • Description

    The Time Zone API provides time offset data for locations on the surface of the earth. Request the time zone information for a specific latitude/longitude pair and date. The API returns the name of that time zone, the time offset from UTC, and the daylight savings offset.
  • Requirements

    1. Google Cloud Account (Billing Enabled)
    2. Google Gloud Credentials API Key
    3. Enabled Google TimeZone API


Events

GotTimeZone


Description: Event raised when time-zone data got using API.

ErrorOccurred

component_event(1)
Description: Event raised when error occurred during execution.


Methods

GetTimeZone

component_method
Description: Send new request for given latitude, longitude and timestamp.

Param Description
latitude String value of the latitude to look up.
longitude String value of the longitude to look up.
timestamp The desired time as seconds since midnight, January 1, 1970, UTC. The Time Zone API uses the timestamp to determine whether or not Daylight Savings should be applied, based on the time zone of the location.


Properties

APIKey


component_set_get(2)

Set & Get your Google Cloud Credentials API key


Note

  1. Do not share your AIA file which contains API Key with others even me also.


Download

GoogleTimeZone.aix (11.0 KB)

9 Likes

Very nice extension!!

1 Like

You mean billing or belling?

1 Like