Welcome to the Global Time in Cities (API) page.
This page contains a brief description and implementation instructions for the project.
Project Description
Shows the current time in different time zones or cities. The program fetches time data (e.g. from the World Time API) for a list of cities and displays it.
Project Requirements
Python 3.x, requests
.
How to Run the Project
- Use a time API (e.g.
http://worldtimeapi.org/api/timezone/America/New_York
) in a script (timezones.py
). - Run it:
python timezones.py
. It lists selected cities and their local times.
Key Concepts Learned
- API Calls: Accessing public time APIs.
- JSON Parsing: Extracting the datetime string from response.
- Time Zones: Understanding how different zones work.
Possible Extensions
- Let user input any city.
- Convert times between zones.
- Add daily alarms.