WorldTimeZones

WorldTimeZones takes latitude and longitude coordinates and determines the time zone for the location.

Resource URL

https://OnDemandServer/soap/WorldTimeZones

For a list of Spectrum OnDemand servers, see Connecting to Spectrum OnDemand Servers.

Example

The following shows a SOAP request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wor="http://www.pb.com/spectrum/services/WorldTimeZones">
   <soapenv:Header/>
   <soapenv:Body>
      <wor:WorldTimeZonesRequest>
         <wor:options/>
         <wor:Input>
            <wor:Row>
               <wor:Longitude>-88.3278267</wor:Longitude>
               <wor:Latitude>41.857464</wor:Latitude>
            </wor:Row>
         </wor:Input>
      </wor:WorldTimeZonesRequest>
   </soapenv:Body>
</soapenv:Envelope>

This would be the response:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
   <ns3:WorldTimeZonesResponse xmlns:ns2="http://www.pb.com/" xmlns:ns3="http://www.pb.com/spectrum/services/WorldTimeZones">
         <ns3:Output>
            <ns3:Row>
               <ns3:Country_Name>United States</ns3:Country_Name>
               <ns3:ISO_2>US</ns3:ISO_2>
               <ns3:Standard_Variation>-6.0</ns3:Standard_Variation>
               <ns3:DST_Variation>-5.0</ns3:DST_Variation>
               <ns3:TZ_id>276</ns3:TZ_id>
               <ns3:Longitude>-88.3278267</ns3:Longitude>
               <ns3:Latitude>41.857464</ns3:Latitude>
               <ns3:user_fields/>
            </ns3:Row>
         </ns3:Output>
      </ns3:WorldTimeZonesResponse>
   </soap:Body>
</soap:Envelope>