How to get the current Unix timestamp
Get the current Unix timestamp in seconds or milliseconds, online or in code. Free tool plus the one-liner in each language.
The current Unix timestamp is the number of seconds since 1970 right now — handy for logging, tokens, and cache keys. Here is how to get it online and in code, in seconds or milliseconds.
Online
Our timestamp tool shows the current epoch time live and lets you copy it in seconds or milliseconds. Useful for a quick value when testing an API, seeding data, or setting an expiry.
In code
JavaScript: Math.floor(Date.now()/1000) for seconds, Date.now() for milliseconds. Python: int(time.time()). Go: time.Now().Unix(). PHP: time(). Shell: date +%s. All return UTC-based epoch time.
Step by step
Open the timestamp tool to see the current epoch time live.
Copy it in seconds (10 digits) or milliseconds (13 digits) as your target needs.
In code, use Date.now()/1000 (JS), time.time() (Python), or date +%s (shell).
Try it now — free, no signup
Use the timestamp converter in your browser. Then, when you need it at scale with an API key and higher limits, grab the full Eveses API.