Originally Posted by haggen
1. GetTimeStamp
2. GetFormattedTime
3. GetTimeString
4. GetDate
5. GetGameTimeMilliseconds
6. GetFrameTimeMilliseconds
7. GetFrameTimeSeconds
8. GetSecondsSinceMidnight
|
In addition to Ayantir's post:
1. Is UTC+0 for everybody, including the server. It is client local, but if synced with Network Time Protocol
*, the same time as the server has.
UNIX timestamp: Seconds since 1/1/1971
5. Milliseconds since program started. (Not since character in world)
6/7: Same as 5, but a snapshot for the frame currently rendered. GetGameTimeMilliseconds>=GetFrameTimeMilliseconds. If greather than 16.667ms no more 60fps.
8: Client local seconds of the day, including daylight saving.
Current time shift compared to 1:
Code:
local localTimeShift = GetSecondsSinceMidnight() -(GetTimeStamp() % 86400)
if localTimeShift < -12 * 60 * 60 then localTimeShift = localTimeShift + 86400 end
*Cleartext: Your clock is running correct.