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>
<!--Optional:-->
<wor:options/>
<!--Optional:-->
<wor:Input>
<!--Zero or more repetitions:-->
<wor:Row>
<!--You may enter the following 3 items in any order-->
<!--Optional:-->
<wor:Longitude>-88.32</wor:Longitude>
<!--Optional:-->
<wor:Latitude>66.57</wor:Latitude>
<!--Optional:-->
<wor:user_fields>
<!--Zero or more repetitions:-->
<wor:user_field>
<wor:name/>
<wor:value/>
</wor:user_field>
</wor:user_fields>
</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://spectrum.pb.com/" xmlns:ns3="http://www.pb.com/spectrum/services/WorldTimeZones">
<ns3:Output>
<ns3:Row>
<ns3:Country_Name>Canada</ns3:Country_Name>
<ns3:ISO_2>CA</ns3:ISO_2>
<ns3:Standard_Variation>-6.0</ns3:Standard_Variation>
<ns3:DST_Variation>-5.0</ns3:DST_Variation>
<ns3:TZ_id>126</ns3:TZ_id>
<ns3:Longitude>-88.32</ns3:Longitude>
<ns3:Latitude>66.57</ns3:Latitude>
<ns3:TimeZones.ZoneName>America/Winnipeg</ns3:TimeZones.ZoneName>
<ns3:TimeZones.TimeZone_Code>CST/CDT</ns3:TimeZones.TimeZone_Code>
<ns3:TimeZones.TimeZone>Central Time (CST/CDT)</ns3:TimeZones.TimeZone>
<ns3:user_fields>
<ns3:user_field>
<ns3:name/>
<ns3:value/>
</ns3:user_field>
</ns3:user_fields>
</ns3:Row>
</ns3:Output>
</ns3:WorldTimeZonesResponse>
</soap:Body>
</soap:Envelope>