date stamps in DB


Active member
For example, post_date, and view_date.

A couple minutes ago would produce: 1287415508
A couple minutes later would show: 1287415593

How is this generated? How would I read this?

I ask because I'd like to be able to INSERT into the db and put accurate times in.

Thanks for any insight.


XenForo developer
Staff member
All times are sourced from XenForo_Application::$time, which is a Unix timestamp set at the start of script execution. The number represents the number of seconds elapsed since January 1st 1970.