Try 30 days of free premium.

Timestamp conversion

OmarSabu wrote 9 years ago: 1

Can anyone offer any guidance to converting the 10 digit number into a valid Timestamp?

example: http://api.tvmaze.com/updates/shows the first 10 digit number is 1442255291 how do I convert it to Date/Time?

I'm very new to this so please don't laugh at me.

Omar

OmarSabu wrote 9 years ago: 1

No problem. It's an "epoch", the amount of seconds since 1970. It's a highly standard unit of time, whatever language/library you use will have support for it. See https://en.wikipedia.org/wiki/Unix_time

Thanks for your quick response. I understand now.

Try 30 days of free premium.