467,925 Members | 2,026 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,925 developers. It's quick & easy.

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
Nov 2 '11 #1
  • viewed: 1540
Share:
1 Reply
1GB
use mktime function to create unix time

and finally subtract two times, dived them with (60*60*24). you will get day difference
Nov 3 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Bart Nessux | last post: by
8 posts views Thread by kwharrigan | last post: by
8 posts views Thread by peterbe | last post: by
1 post views Thread by rija | last post: by
8 posts views Thread by flamesrock | last post: by
9 posts views Thread by Ron Adam | last post: by
1 post views Thread by Nitro | last post: by
5 posts views Thread by Nickolai Leschov | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.