Unix timestamps: seconds vs milliseconds

Ten digits commonly means seconds and thirteen commonly means milliseconds. Treating one as the other shifts the date by roughly a factor of 1,000.

Unix Timestamp ConverterOpen the tool

Steps

  1. Inspect the length, but do not rely on length alone.
  2. Try both seconds and milliseconds.
  3. Verify UTC, local time and ISO 8601 output.
  4. Document the expected unit in your API.

Common questions

Unix timestamps: seconds vs milliseconds — WebToolMint?

Ten digits commonly means seconds and thirteen commonly means milliseconds. Treating one as the other shifts the date by roughly a factor of 1,000.

Privacy / 隐私

The related tool primarily works in your browser. Keep the original and verify the result before sharing or submission.

Open the tool