BDwinsAlt Posted October 7, 2006 Share Posted October 7, 2006 How do I find the server time in seconds since Jan 1, 1970. I have this bot that uses MySQL to store ban information and things like that. Right now I am using the remote user's time to figure out the ban creation time, I need to use the server time. Since the server time is not correct I use [servertime - 28940], how can I accuratly get the server time in seconds, and then subtract 28940 seconds from that? Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 7, 2006 Share Posted October 7, 2006 the time() function ... http://ca.php.net/manual/en/function.time.php Quote Link to comment Share on other sites More sharing options...
BDwinsAlt Posted October 7, 2006 Author Share Posted October 7, 2006 Thats what I have now, I thought that was the user's time, not the server time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.