Seconds, or milliseconds
A 10-digit value is treated as seconds and a 13-digit value as milliseconds, divided by 1,000 before counting; each day counts as exactly 86,400 seconds in UTC. The reverse direction parses the entered date and time, then counts the seconds back to the epoch. Leap seconds are absorbed rather than added, so Unix time always ticks in whole 86,400-second days.