Tag Archives: Logitude Latitude

Shell script to get Timezone

By ajayram_arya

Hi friends i need to writing a code to use the longitue and latitude to get a time zone. Example below

Code:

Logitude Latitude
OMAN 21.9 56.6
BRGHT 27.57 -89.4
BLUGL 26.25 -91.95


latitude lines run horizontally
Longitude are vertical lines

using below example of wget we get the +0400 which is a TIMEZONE . How can we write a program to create a table and put this information in another column.

Code:

wget -O test

1.0

21.9
56.6

4
D
14 Feb 2013 19:49:48
2013-02-14 19:49:48 +0400[/COLOR]
2013-02-14 15:49:48
Unknown


Appreciate your time and effort.

Moderator’s Comments:
Use code tags, thanks.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums