Skip to content
useToolz online tools

Unix Timestamp конвертер онлайн

Sign in or register to save tools to favorites

Current Unix Timestamp

Timestamp → Date

UTC:
Local:
ISO 8601:
Relative:

Date → Timestamp

Code examples

Convert Unix timestamp to a readable date and back.

Unix timestamp is the number of seconds elapsed since January 1, 1970 (UTC). This format is widely used in APIs, logs, and databases.

Results are shown in UTC, local time, and ISO 8601 format.

Unix Timestamp Converter Online — with Code Examples

Unix timestamp (POSIX time, Epoch time) is the number of seconds since January 1, 1970 00:00:00 UTC. It is a universal way to store time, independent of timezone, date format, or locale. Our converter translates timestamps to dates and back, shows current time live, and provides code examples in 12 languages.

What Is Unix Timestamp and Epoch

Epoch is the starting point: January 1, 1970, 00:00:00 UTC. All dates before have negative timestamps.

Timestamp Code Examples

LanguageCurrent timestampTimestamp → Date
JavaScriptMath.floor(Date.now()/1000)new Date(ts * 1000)
Pythontime.time()datetime.fromtimestamp(ts)
PHPtime()date('Y-m-d', $ts)
Gotime.Now().Unix()time.Unix(ts, 0)
SQLUNIX_TIMESTAMP()FROM_UNIXTIME(ts)

Year 2038 Problem

32-bit systems store timestamps as signed int32, max value 2,147,483,647 = January 19, 2038, 03:14:07 UTC. After this, the number overflows. Solution: use 64-bit integers. Most modern systems already do.

Seconds vs Milliseconds

Unix timestamp is traditionally in seconds (10 digits). JavaScript and Java return milliseconds (13 digits). Our converter auto-detects the format.

Frequently Asked Questions

Why use timestamp instead of a date string?
Timestamps are timezone-independent, format-agnostic, and easy to sort and compute with.

How to convert a date to timestamp?
Enter a date in our converter. In code: JS — new Date('2025-01-01').getTime()/1000, Python — datetime(2025,1,1).timestamp().

What is "relative time"?
A human-readable representation: "5 minutes ago", "in 3 hours". Our converter shows relative time for each converted timestamp.

Does timestamp account for leap seconds?
No. Unix time treats every day as exactly 86,400 seconds.

For cron expressions use the Cron generator, for data formatting — JSON formatter.

We use cookies for site operation and analytics. Подробнее

Upscaled image
Download

Log in to continue

or