Current Unix Timestamp
Get the current Unix timestamp in seconds and milliseconds. See how to read epoch time now in JavaScript, Python, Bash and SQL.
Part of the free Unix Timestamp Converter. Runs in your browser — nothing is uploaded.
Current Unix Timestamp
The converter above shows the live timestamp for this moment. To get it in your own code, every language has a one-liner. The example shows how a fixed instant maps to both second and millisecond precision.
Worked example: One instant, two precisions
Instant
2026-06-01T12:00:00Z
Timestamps
seconds: 1780315200 milliseconds: 1780315200000
Practical tip
JavaScript: Math.floor(Date.now()/1000). Python: int(time.time()). Bash: date +%s. PostgreSQL: extract(epoch from now()).
How to use this Unix Timestamp
- 1Use the live tool above — it runs entirely in your browser and never uploads your data.
- 2Paste the sample from the worked example, or use your own input.
- 3Copy the result, then adapt the same steps in your editor, script, or pipeline.
Current Unix Timestamp FAQs
How do I get the current timestamp in JavaScript?
Date.now() returns milliseconds. Use Math.floor(Date.now() / 1000) for seconds.
How do I get it in Python or Bash?
Python: import time; int(time.time()). Bash: date +%s. Both return whole seconds since the epoch.
More Unix Timestamp pages
- Epoch to Date ConverterConvert an epoch or Unix timestamp to a readable date and time. Paste seconds or milliseconds and get UTC and local time instantly.
- Convert a Date to a Unix TimestampConvert a calendar date and time to a Unix timestamp in seconds. Enter a date, choose a timezone and copy the epoch value.
- Milliseconds Timestamp to DateConvert a 13-digit millisecond Unix timestamp to a readable date. Works for JavaScript Date.now() and Java System.currentTimeMillis() values.
- Convert Epoch to UTCConvert an epoch timestamp to a UTC date and time. See the ISO 8601 string and avoid local-timezone confusion when reading logs.
- What Date Is Unix Timestamp 1000000000?Unix timestamp 1000000000 is the "billennium": the moment epoch time reached one billion seconds. See the exact date and how to convert any timestamp.
- Year 2038 Problem and Timestamp 2147483647Timestamp 2147483647 is the largest 32-bit signed Unix time. Convert it to see the date and learn how to avoid the Year 2038 problem.
- Unix Timestamp to ISO 8601Convert a Unix timestamp to an ISO 8601 string like 2026-01-01T00:00:00Z. Ideal for APIs, JSON payloads and logging formats.
- Convert a Unix Timestamp to a Date in JavaScriptConvert a Unix timestamp to a Date in JavaScript with new Date(ts * 1000). Check your result with the live converter and avoid the seconds vs milliseconds trap.
- Convert a Unix Timestamp in SQLConvert Unix timestamps to dates in MySQL with FROM_UNIXTIME and in PostgreSQL with to_timestamp. Verify the expected value with the converter.