So it's not possible to get server side seconds-since-epoch?
I'm adding features to a mod that requires an authoritative time/date stamp, so that users can report the last known time a given player was chosen as a target.
It seems that the only seconds-since-epoch functions are client-side and that there's no notion of "date" with any of the server side time functions.
This leaves me with two options:
1) Use GetTime() and just live with the fact that the "LastSeen" field will be garbage each time there is a server restart. (GetTime() returns server uptime, not SSE).
2) Use the time() function, try to figure out a way of determining what time zone the client is, and hope that their clock is accurate.
I'm thinking option 1 is by far the lesser of two evils.
__________________
"Any society that would trade liberty for security will lose both and deserve neither."
- Benjamin Franklin
|