Page 1 of 1

How to calculate date of create and end?

Posted: 17 Jun 2018, 12:59
by filip212
Hello,
Im doing script to connect SMS gate VIP with my amxbans...
Im interested how is calculated date of create/date of end because this script will manually add user to admin database with VIP flags...
I need know this to complete end my script. Thank you.

Re: How to calculate date of create and end?

Posted: 17 Jun 2018, 15:32
by filip212
I mean this in mysql database i have:
created: 1529232301 expired: 1531824301 days: 30

1531824301 - 1529232301 / 60 / 60 = 24 hours ok it looks its in seconds but how to get first variable created :?:

Re: How to calculate date of create and end?

Posted: 18 Jun 2018, 22:50
by indianiso1
time()? Not sure what you wanted to hear.