A simple world clock web app that shows the current time across different countries / time zones.
- Displays country name + flag
- Shows corresponding time zone
- Updates times live (real-time)
- Clean, minimal UI
- When the page loads, it fetches the current time for each configured country / timezone.
- It displays the country name, flag icon, and the current offset (e.g.
UTC +5:30). - The UI automatically updates so the clocks remain accurate.
/
├── index.html
├── css/
│ └──style.css
├── js/
│ └──script.js
├── img/
│ └── ← icons
│
└── README.md
- index.html — Main HTML file that holds the structure of the world clock view
- style.css — Styles for layout, flags, typography
- script.js — Logic to compute and update time displays
- assets/flags — Country flags / icons
- Clone or download the repo
git clone https://github.com/suyxcode/world-clock.git
- Open
index.htmlin a browser - The clocks should display current times automatically
- HTML
- CSS
- JavaScript
-
To add a new country / timezone:
- In
js/script.js, include its timezone offset and display logic - Add corresponding HTML markup or dynamically generate
- Custom styling: modify
style.css
- In
👤 Suyash Singh
🔗 Github
💼 Linkedin
🌐 Portfolio
