API GetServerTime

Returns the server's Unix time. timestamp = GetServerTime

Returns

 * timestamp : number - Time in seconds since the epoch.

Details

 * Unix time does not change no matter in which time zone you are in, making it useful for tracking and sorting dated information. This API returns the server's Unix timestamp which should be the same value as . Using the server's Unix timestamp is more preferable since this is synchronized between clients. The local machine's clock could possibly have been manually changed and might also be off by a few seconds if not recently synced.

Comparison
When in a EU time zone CEST (UTC+2) and playing on Moon Guard US, CDT (UTC-5). The examples were taken at the same time. -- unix time -- 1596157547 )                  -- 1596157549  -- 1596139440 unix time offset by UTC (e.g. minus 5 hours) -- local time                              -- "Fri Jul 31 03:05:47 2020" -- realm time                           -- 20, 4  -- hour:20, minute:4