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? Link to comment https://forums.phpfreaks.com/topic/23235-server-time-in-seconds-since-jan-1-1970/ 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 Link to comment https://forums.phpfreaks.com/topic/23235-server-time-in-seconds-since-jan-1-1970/#findComment-105340 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. Link to comment https://forums.phpfreaks.com/topic/23235-server-time-in-seconds-since-jan-1-1970/#findComment-105341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.