World Clock

Data Products Shiny & Slidify project

Uma Venkat

Concept

The idea for the project is to get user(s) to select a city from a predefined list, convert the system time time the time in the city selected by the user. For instance, if the user select Chennai in Tamilnadu, India, then this application will use the sys time to determine the time in Chennai, Tamilnadu, India and display the results to the user. In addition, the application will also show the location of Chennai on the world map.

How to use the application

  • Select a City in the "Choose a City" box to see the time in the city in the table as well as the location of the city in the map above the table results
  • The landing page displays all the cities and the time in the city

How it works

Essentially, the application uses the underlying CSV to map the time zones to the cities. When the user selects a city, the application retrieves the corresponding time zone (IANA standards) and uses POSIXlt function to convert the system time to the time in the selected city.

In addition, the selected city is pin-pointed on the world map. For this the application gets the longitute and latitude of the city using the geocode function in R and uses this values to point the city on the map.

Location of the project files

Data Source

Data: The data used for this project was manually compiled based on various various websites including:

Disclaimer: Since the data was manually compiled, there is a possibility of errors and the result displayed may not be accurate.