Skip to content

osmanyz/country-timezone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 Countries and Timezones: The Ultimate Dataset

Welcome to the most comprehensive, hand-checked, and community-driven country and timezone dataset! Whether you're building a global app, validating user input, or just love world data, you've found your new favorite resource. 🚀


✨ What You'll Find Here

  • 244 countries with official ISO codes, timezones, locales, phone codes, and more
  • Data validated and cross-checked with multiple authoritative sources
  • Ready-to-use JSON for your projects

🔗 Authoritative Sources & References (2024)


🚀 How to Use This Data

Example: Load and Query in Python

import json
with open('data/country.json') as f:
    countries = json.load(f)
# Find all countries in Europe
european_countries = [c for c in countries if 'Europe' in str(c.get('timezones', ''))]
print(european_countries)

Example: Validate a Country Code

const countries = require('./data/country.json');
function isValidCountryCode(code) {
  return countries.some(c => c.code === code);
}

🌐 Recommended APIs and Datasets


🛠️ Validation

Our JSON is validated and passes all major validators:

You can (and should!) verify it yourself. If you spot an issue, let us know!


🤝 Contributing

We love community contributions! If you spot an error, want to add a country, or have a suggestion, open an issue or pull request. Your help makes this project better for everyone. 🌟


🎉 Fun Facts

  • There are more official timezones than you might think—some countries have over 10!
  • The smallest country by area (Vatican City) and the largest (Russia) are both included.
  • Some countries share phone codes, but have unique timezones and locales.
  • The IANA timezone database is updated several times a year to reflect real-world changes.

🙏 Thank You!

If this project saved you time or helped your work, please give it a ⭐ on GitHub! Your support keeps this data free and up-to-date for everyone.


Happy coding! 🌏🕒

Releases

No releases published

Packages

No packages published