• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

date stamps in DB

Phases

Active member
#1
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.
 

Kier

XenForo Developer
Staff member
#3
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.