How Unix timestamps work
Unix timestamps count seconds since 1970-01-01 00:00:00 UTC, using the conventional POSIX timeline that does not count leap seconds separately.
Worked example
The value 0 represents the epoch; 86400 represents the next day at midnight UTC. Millisecond timestamps use 1000 times the seconds value.
Practical advice
Check the unit before converting an API value. Preserve the original timestamp when displaying it in different local zones.