Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 2.59 KB

File metadata and controls

68 lines (42 loc) · 2.59 KB

🕰️ Age Calculator (Hijri / Gregorian) — حاسبة العمر

A lightweight, open-source Hijri & Gregorian age calculator built with vanilla HTML, CSS, and JavaScript — no frameworks, no dependencies, fully client-side.

This is a simplified, standalone version of the calculator engine that powers HisabAlUmr.com — a free Arabic-language platform offering precise age, date, and Islamic calculator tools.

✨ Features

  • 📅 Gregorian date of birth input with day/month/year dropdowns
  • ⏳ Calculates exact age in years, months, days, weeks, hours, and minutes
  • 🎂 Countdown to next birthday
  • 🌙 RTL (right-to-left) Arabic UI out of the box
  • 🎨 Clean, dark-themed, responsive single-file design
  • ⚡ Zero dependencies — just open index.html in a browser

🚀 Demo

Open index.html directly in your browser, or view it live here.

🔧 Why this exists

Most age calculators online only handle the Gregorian calendar. Many Arabic and Muslim-majority audiences also need accurate Hijri (Islamic) calendar conversions for birthdays, religious dates, and milestones.

This repo shares the core open-source logic. The full-featured version — with accurate Hijri conversion, life-clock visualization, heartbeat/sleep-time estimates, shareable result cards, and more Islamic calculator tools (Zakat, pregnancy, sleep cycles) — is available free at:

👉 hisabaleumr.com

📁 Usage

Clone the repo and open the file — that's it:

git clone https://github.com/your-username/age-calculator.git
cd age-calculator
open index.html

No build step, no npm install, no server required.

🛠️ Tech Stack

  • HTML5
  • CSS3 (custom properties / variables)
  • Vanilla JavaScript (ES6+)

🤝 Contributing

Pull requests are welcome! Ideas for contributions:

  • Accurate Hijri calendar conversion algorithm
  • i18n support (English / Urdu / Turkish)
  • Unit tests for date edge cases (leap years, month boundaries)

📄 License

MIT License — free to use, modify, and distribute.

🔗 Related Tools

More Arabic calculator tools from the same project:


⭐ If you find this useful, consider starring the repo!