serverTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
(description tidying up)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Server time synchronized to clients. Returns always 0 in Singleplayer.
| Returns the time since last server restart, synced to all clients in MP. The syncing is happening every 5 minutes, but you can force the next sync earlier by executing [[estimatedTimeLeft]] command. The time returned is also different to the time returned by [[time]] and [[diag_tickTime]] commands on server. Returns 0 in SP.<br/><br/>
<br />Note that in ArmA2 1.05 Final, this command only returns the time since the '''Server''' was actually started.


<br><br>NOTE: [[serverTime]] is available to both server and clients and shows the same value when synced. The only time it is not synced is on the server, right after server restart and only for the first 300 seconds. Client side [[serverTime]] is synced from the start. [[serverTime]] is also different from server [[time]] and server [[diag_tickTime]] |= Description
{{Informative|'''Known issues''': Both server and clients show the same value when synced. The only time it is not synced is on the server, right after server restart and only for the first 300 seconds. Client side is synced from the start}}|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:29, 13 September 2018

Hover & click on the images for description

Description

Description:
Returns the time since last server restart, synced to all clients in MP. The syncing is happening every 5 minutes, but you can force the next sync earlier by executing estimatedTimeLeft command. The time returned is also different to the time returned by time and diag_tickTime commands on server. Returns 0 in SP.

Known issues: Both server and clients show the same value when synced. The only time it is not synced is on the server, right after server restart and only for the first 300 seconds. Client side is synced from the start
Groups:
Uncategorised

Syntax

Syntax:
serverTime
Return Value:
Number

Examples

Example 1:
hint format ["Synced server time : %1", serverTime];

Additional Information

See also:
timediag_tickTimedatemissionStartestimatedTimeLeftestimatedEndServerTime

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section