The Unix timestamp is the number of seconds that have elapsed since January 1, 1970 (UTC), not counting leap seconds.
On January 19, 2038, 32-bit signed Unix timestamps will overflow. 64-bit systems are already safe from this issue.
Most systems use seconds (10 digits), but JavaScript and some APIs use milliseconds (13 digits).