Skip to content

suyXcode/world-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

World Clock 🌐

A simple world clock web app that shows the current time across different countries / time zones.

Live Demo β†’ World Clock


πŸ–ΌοΈ Screenshot / Preview

WebPage


πŸš€ Features

  • Displays country name + flag
  • Shows corresponding time zone
  • Updates times live (real-time)
  • Clean, minimal UI

🧭 How It Works

  1. When the page loads, it fetches the current time for each configured country / timezone.
  2. It displays the country name, flag icon, and the current offset (e.g. UTC +5:30).
  3. The UI automatically updates so the clocks remain accurate.

πŸ“ Project Structure (Example)

/
β”œβ”€β”€ 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

πŸ“¦ Usage

  1. Clone or download the repo
    git clone https://github.com/suyxcode/world-clock.git
  2. Open index.html in a browser
  3. The clocks should display current times automatically

πŸ”§ Technologies & Tools

  • HTML
  • CSS
  • JavaScript

πŸ“ Customization

  • To add a new country / timezone:

    1. In js/script.js, include its timezone offset and display logic
    2. Add corresponding HTML markup or dynamically generate
    3. Custom styling: modify style.css

πŸ‘¨β€πŸ’» Author

πŸ‘€ Suyash Singh
πŸ”— Github
πŸ’Ό Linkedin
🌐 Portfolio


About

A simple world clock web app that shows the current time across different countries / time zones.

Topics

Resources

Stars

Watchers

Forks