World Time Request

If u are coding and look for a simple way to get the -accurate- time of a specific place in the world. there is a free service that help u to get that.

TIME ZONE AND LOCAL TIME

This service responds with the time zone and local time at the given latitude and longitude. Daylight Saving Time is currently taken into account for Western Europe (areas covered by the UTC+0 and UTC+1 time zones). To access the service, use:

http://www.earthtools.org/timezone/<latitude>/<longitude>

where <latitude> and <longitude> should be replaced with the latitude and longitude of the place to query. Note that the query should be entered without the <s or >s (as shown in the example below).

Here’s an example for New York:

http://www.earthtools.org/timezone/40.71417/-74.00639

which returns the following XML:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<timezone xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:noNamespaceSchemaLocation="http://www.earthtools.org/timezone.xsd">
    <version>1.1</version>
    <location>
        <latitude>40.71417</latitude>
        <longitude>-74.00639</longitude>
    </location>
    <offset>-5</offset>
    <suffix>R</suffix>
    <localtime>4 Dec 2005 12:06:56</localtime>
    <isotime>2005-12-04 12:06:56 -0500</isotime>
    <utctime>2005-12-04 17:06:56</utctime>
    <dst>False</dst>
</timezone>

To get a detailed description surf to (you may also like to donate)

http://www.earthtools.org/webservices.htm

Leave a comment

Name: (Required)

eMail: (Required)

Website:

Comment: