How to calculate date of create and end?

Ask questions about errors and problems related to the amxbans project.
The more details you give, the better answer you will receive, READ the sticky topics before posting!

Be sure to post in the right sub forum: Bugs and Security
filip212
Posts: 2
Joined: 17 Jun 2018, 12:51

How to calculate date of create and end?

Postby filip212 » 17 Jun 2018, 12:59

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.

filip212
Posts: 2
Joined: 17 Jun 2018, 12:51

Re: How to calculate date of create and end?

Postby filip212 » 17 Jun 2018, 15:32

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 :?:

User avatar
indianiso1
Posts: 104
Joined: 16 Oct 2015, 01:59
Contact:

Re: How to calculate date of create and end?

Postby indianiso1 » 18 Jun 2018, 22:50

time()? Not sure what you wanted to hear.


Return to “Support and Help”

Who is online

Users browsing this forum: No registered users and 6 guests