Skip to main content

Unix Timestamp Converter

Convert Unix timestamps to dates and back, with seconds, milliseconds and selectable time zones. Check log entries and API timestamps in your browser.

Timestamp and Date String Conversion

Edit either field and the other updates live. Open the calendar for precise date and time selection.

Date & time

UTC

—

Asia/Shanghai

—

Europe/London

—

America/New_York

—

Batch convert timestamps
Live · Week of Year --/--
s

 

Day progress0%
Year progress0.0%
02

Recent Timestamps

Click a row to copy the timestamp

More time tools

03

Timestamp in Programming Languages

How to get current Unix timestamp in different programming languages

Python
1import time2from datetime import datetime, timezone3 4unix_seconds = int(time.time())5unix_milliseconds = time.time_ns() // 1_000_0006date_from_seconds = datetime.fromtimestamp(1700000000, tz=timezone.utc)7date_from_milliseconds = datetime.fromtimestamp(1700000000123 / 1000, tz=timezone.utc)8print(date_from_seconds.isoformat(), date_from_milliseconds.isoformat())
04

Frequently Asked Questions

05

What is a Unix Timestamp?

A timestamp is a sequence of characters or encoded information identifying when a certain event occurred, usually giving date and time of day, sometimes accurate to a small fraction of a second.

The Unix timestamp tracks time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC.