WEB PHP & Unix Timestamp question

Discussion in 'OT Technology' started by pullmancrew, Jun 21, 2009.

  1. pullmancrew

    pullmancrew New Member

    Joined:
    Jun 9, 2007
    Messages:
    323
    Likes Received:
    0
    Hello, I am trying to calculate amount of hours in between two unix dates using mktime() and date() but am kind of stumped. Any help would be appreciated :)
     
  2. opie

    opie hi. OT Supporter

    Joined:
    Sep 29, 2004
    Messages:
    6,025
    Likes Received:
    0
    Location:
    AZ
    convert them to unix timestamp.

    strtotime("time goes here");

    and then do a diff based on seconds
     
  3. brds

    brds OT Supporter

    Joined:
    Jun 26, 2006
    Messages:
    17,647
    Likes Received:
    15
    Location:
    Atlanta
    You could always do something like this:

     
  4. pullmancrew

    pullmancrew New Member

    Joined:
    Jun 9, 2007
    Messages:
    323
    Likes Received:
    0
    Wirelessly posted via wap.offtopic.com (BlackBerry8330/4.5.0.131 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/104)

    Thanks!!
     

Share This Page