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

date stamps in DB

Discussion in 'XenForo Development Discussions' started by Phases, Oct 18, 2010.

  1. Phases

    Phases 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.
  2. Pepelac

    Pepelac Well-Known Member

  3. Kier

    Kier 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.
    Mikey and Phases like this.
  4. Phases

    Phases Active Member

    lol cool, great thanks! :D

Share This Page