A timestamp generator writes Unix time: seconds or milliseconds since 1970-01-01T00:00:00Z. This timestamp generator can snapshot the current instant, convert a local date-time from this browser into Unix time, or convert a Unix seconds or milliseconds value into ISO 8601 UTC. Choose the input unit before you convert. The tool does not guess the unit from digit count. Unix time is UTC. The local field uses the zone the browser already has. That is not a time-zone converter. It will not apply IANA zones or DST tables you type by name.
This is not the Date Difference Calculator and not the Time Duration Calculator. Those pages count spans. This page names an instant. It will not tell you how old someone is and will not wrap midnight for a shift length.
Use Now when you need a created_at value. Use From local time when you already have a civil clock in this zone. Choose Seconds or Milliseconds, enter the integer, then use From Unix value when a log printed a Unix number and you want the UTC ISO form. Copy seconds writes the Unix seconds row.
Empty local time and empty Unix input are errors for those actions. Non-integer Unix values are rejected. Extremely large Unix values are refused so the Date object stays usable. The seconds limit is an absolute value above 1×1011; the milliseconds limit is the same instant window (absolute value above 1×1014). Labels sit above the fields.
Unix seconds 0 is 1970-01-01T00:00:00.000Z. Unix seconds 1700000000 is 2023-11-14T22:13:20.000Z. The same instant as milliseconds is 1700000000000. If you leave the unit on Seconds and paste 1700000000000, the tool treats that as seconds and refuses the value as out of range rather than silently dividing by 1000. Now uses this computer’s clock; two clicks a second apart differ by about one second. A local time of 2020-01-01 00:00 in a UTC+4 browser becomes 2019-12-31T20:00:00.000Z. Script-looking text in the Unix field is rejected as not a number.
0 → 1970-01-01T00:00:00.000Z
1700000000 s = 1700000000000 ms → 2023-11-14T22:13:20.000Z
If the job was “how many nights between two dates,” leave this page. If the job was “what is the Unix time of this instant,” stay. Write seconds or milliseconds next to the number. Mixing them is how a token expires in 1970 or in the year 56000.
The ISO row always includes milliseconds and a Z. Some APIs want seconds only as an integer. Copy seconds is for that case. Some APIs want milliseconds. Read the milliseconds row instead of multiplying in your head if you can avoid it.
The local field’s step is one second. Sub-second local input is not offered. Now still reports milliseconds from the system clock because that clock has them.
If the clock on the computer is wrong, Now is wrong. This page does not reach out to a network time service. For a signature that must agree with a server, trust the server’s clock or an agreed NTP source, not a tab that read Date.now().
Negative Unix values are allowed when they are whole numbers in range. They name instants before 1970. Some databases reject that. The page will still show the ISO form. Whether you should store it is a schema question, not a generator question.
Unix time is UTC. Choose seconds or milliseconds before converting. The local field uses this browser’s zone and is not a time-zone converter. Not a duration or age calculator.
Yes. Unix time is seconds since the UTC epoch, not a local wall clock.
No. Local means this browser’s zone only. There is no IANA picker.
Now shows both. Copy copies seconds. Choose Seconds or Milliseconds before From Unix value; the tool does not guess from digit count.
No. Use the Time Duration or Date Difference calculators for spans.