interface TimeZoneRequest {
    params: {
        language?: Language;
        location: LatLng;
        timestamp: number | Date;
    } & RequestParams;
}

Hierarchy

  • Partial<AxiosRequestConfig>
    • TimeZoneRequest

Properties

Properties

params: {
    language?: Language;
    location: LatLng;
    timestamp: number | Date;
} & RequestParams

Type declaration

  • Optionallanguage?: Language

    The language in which to return results. Note that we often update supported languages so this list may not be exhaustive.

    Language.English
    
  • location: LatLng

    a comma-separated lat,lng tuple (eg. location=-33.86,151.20), representing the location to look up.

  • timestamp: number | Date

    specifies 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. Note that the API does not take historical time zones into account. That is, if you specify a past timestamp, the API does not take into account the possibility that the location was previously in a different time zone.