Skip to main content
AllDevToolsHub
Back to all patterns

Unix Timestamp (Seconds)

Dates & Numbers

Matches a 10-digit Unix timestamp in seconds (the 2001–2286 range).

/^1[0-9]{9}$/

How it works

Unix timestamps in seconds for dates roughly between Sep 2001 and the year 2286 are 10 digits and start with 1. Useful as a sanity check on log fields. Pre-2001 timestamps are 9 digits.

Test Cases

Should Match

  • 1716552896
  • 1000000000

Should NOT Match

  • 999999999
  • 1716552896000
  • abc

Quick Summary

Matches a 10-digit Unix timestamp (seconds), covering 2001 through 2286.