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

Output raw unix time from xen:date/datetime?

Discussion in 'XenForo Development Discussions' started by CyberAP, Jul 30, 2016.

  1. CyberAP

    CyberAP Well-Known Member

    Is there any way to output a raw unix time from xen:date function?
    I have a call {xen:datetime $user.last_activity, absolute} and need to get just a raw number instead of 11 Jul 2016 10:00.
  2. CyberAP

    CyberAP Well-Known Member

    Sorry, it was obvious, just use the variable itself: {$user.last_activity}.
    Steve F likes this.

Share This Page