Jump to content

Archived

This topic is now archived and is closed to further replies.

BDwinsAlt

*Server* time in seconds (since Jan. 1, 1970)

Recommended Posts

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?

Share this post


Link to post
Share on other sites
the time() function ... http://ca.php.net/manual/en/function.time.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.