Jump to content

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


BDwinsAlt

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?
Link to comment
https://forums.phpfreaks.com/topic/23235-server-time-in-seconds-since-jan-1-1970/
Share on other sites

Archived

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

×
×
  • Create New...

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.