Thread: Count up

    #1
  1. User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2005
    Location
    UK
    Posts
    471
    Rep Power
    76

    Count up


    Hi All,
    I'm trying to find a script (but without luck) that can take a unix timestamp from the past, and the current ( time() ) and display the minutes, hours and days between the 2?
    Thanks,
    Sephers.

    Comments on this post

    • Arty Ziff agrees
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2007
    Posts
    264
    Rep Power
    72
    Hi there,

    Take a look at this function at php.net - http://www.php.net/manual/en/function.time.php#89415

    Hope that helps!

    Comments on this post

    • Arty Ziff agrees : Time functions are wonderful.
    ATOMIC Web Hosting 2006 - 2010
    Shared Hosting - Reseller Hosting - Dedicated Servers - Virtual Private Servers (Request Dedicated/VPS Servers via E-mail)
    E-mail: sales@atomicwebhosting.com Website: http://www.atomicwebhosting.com/

  4. #3
  5. User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2005
    Location
    UK
    Posts
    471
    Rep Power
    76
    Oh yeah, I didn't realize Unix timestamp were seconds from a when it was invented. Clever. Suddenly life is a lot easier, cheers.

IMN logo majestic logo threadwatch logo seochat tools logo