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

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 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

Open the full Unix Timestamp tool →