Need Help in Calculating Unix Start time and End time.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sajid19991
    New Member
    • Nov 2011
    • 1

    Need Help in Calculating Unix Start time and End time.

    Hello dear friends,

    i needed a help in php...suppose a user buys a service on my site and that service is for 30 days, so i just wanted to know that how to calculate expiration time (unix) from the date they purchased service...plz explain with example code...

    thanx
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    use mktime function to create unix time

    and finally subtract two times, dived them with (60*60*24). you will get day difference

    Comment

    Working...