Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-15-07, 12:19 AM   #1
Aule
A Fallenroot Satyr
 
Aule's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 20
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
  Reply With Quote
 

WoWInterface » Developer Discussions » General Authoring Discussion » So it's not possible to get server side seconds-since-epoch?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off