Interpret TimeStamp

snoopdo2g

New Member
I am trying to interpret a series of numbers that are representing time so that I can change them in the near future to different numbers. How long is 135671800? And what does each mean? Is it DD:HH:MM:SS? \[code\]{"next_timestamp":1356751800,"next_duration":9000,"next_title":"Saturday Night","next_description":"Hearing and Healing"}\[/code\]The original javascript that is interpreting the result is: \[code\]else if (typeof data.next_timestamp !== "undefined") { seconds_till = data.next_timestamp - (new Date().getTime() / 1000); days = Math.floor((seconds_till % 31536000) / 86400); hours = Math.floor((seconds_till % 86400) / 3600); minutes = Math.floor((seconds_till % 3600) / 60); seconds = Math.floor(seconds_till % 60); return intervalId = setInterval(function() { if (--seconds < 0) { seconds = 59; if (--minutes < 0) { minutes = 59; if (--hours < 0) { hours = 23; if (--days < 0) { days = 365; } } } }\[/code\]Thanks!
 
Back
Top