function should expire on specific date
I have a function which should work only until a specific date and expire after.
I have the idea that a if code have to be placed into the first lines of that function: Code:
But I need help on the date checking. Thanx in advance! |
|
Thanks des, but could you give me an example checking if the current date is later/equal the date given by the var expireDate?
|
if i'm right in assuming how these date commands work:
Code:
i'm not totally sure though, the time functions appear confusing and misleading to me. |
use get_systime from you set it and add however many seconds to make it your expire date then just check it with get_systime again.
|
Thanks for the help, I think get_systime is working for me. A little bit more calculation beforehand, but I do not have to handle with dates in the function.
|
| All times are GMT -4. The time now is 20:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.