PDA

View Full Version : Trying to get current date/time for logging of plugin in database?


EvilArcana
07-04-2016, 05:30 PM
I have a plugin that I'm trying to log the activity of. I created a table in my database and gave the dateline field a type of unsigned int(10) like all the dateline entries in the existing database.

I think the dateline is in epoch time, but I'm not sure the proper way that a plugin should fill that field. What variable should I use from vbulletin? Or do I just use regular php code to get server epoch time?

MarkFL
07-04-2016, 05:44 PM
I use TIMENOW for the current time. :)

Paul M
07-04-2016, 10:25 PM
TIMENOW would be correct.