Unix Timestamp Converter, With the Hijri Date

Convert a Unix timestamp in seconds or milliseconds to a readable date in your time and any timezone, and to the Hijri date on the Umm al-Qura calendar, or turn any date into Unix time.

Convert now
17672256002026-01-01 03:0012 Rajab 1447

Converter

How the tool works

Simple steps, all in your browser with no sign-up.

Type a number or date

Or press Now.

See conversions

Your time, any zone and Hijri.

Copy

Any value in one click.

What is a Unix timestamp?

The number of seconds since 1 January 1970 UTC. Databases, logs and APIs use it because it is a single number unaffected by timezones. A 13-digit number is in milliseconds, as in JavaScript.

LanguageCurrent time in seconds
PHPtime()
JavaScriptMath.floor(Date.now() / 1000)
Pythonint(time.time())
MySQLUNIX_TIMESTAMP()
Linuxdate +%s

About the Hijri date

It is calculated by your browser using the Umm al-Qura calendar used in Saudi Arabia. Months tied to moon sighting, such as Ramadan and Shawwal, may differ by a day from the official announcement, so follow the announcement for occasions.

Scheduling a job? Use the cron generator, and remember servers usually run on UTC.

Converting timestamps in code

CodeLanguage
date('Y-m-d H:i', $ts)PHP
new Date(ts * 1000).toISOString()JavaScript
datetime.fromtimestamp(ts, tz=timezone.utc)Python
FROM_UNIXTIME(ts)MySQL
date -d @1767225600Linux

Key terms

Short definitions of what you meet along the way.

Unix timestamp
Seconds since 1 January 1970 UTC.
UTC
Coordinated Universal Time, the reference for all timezones.
ISO 8601
An international date-time format such as 2026-01-31T09:00:00Z.
Umm al-Qura calendar
The calculated Hijri calendar used officially in Saudi Arabia.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Why does my computer's time differ from the server?

Servers usually run on UTC and your computer on local time. The Unix timestamp itself is the same.

What is the year 2038 problem?

Old systems that store time in 32 bits overflow on 19 January 2038. Modern systems use 64 bits.

Does the tool need the internet?

Once the page is open, all calculations run in your browser.

Need a system that handles dates and schedules?

We build booking, reporting and scheduled-task systems.

Contact us on WhatsApp