Workspace:GetServerTimeNow() documentation incorrect and needs more information

Workspace:GetServerTimeNow() documentation is incorrect

Documentation says

Essentially, it is the client’s best guess of what os.clock would return on the server.

It is not at all an estimate based on what os.clock() would return on the server, os.clock() has no Unix epoch baseline. The single function it could be said to estimate the server value of would be tick(), but tick() is not monotonically increasing and Workspace:GetServerTimeNow() is.

This distinction is important, any code relying on that documentation will almost certainly be incorrect. documentation does not specify if it’s monotonically increasing

Documentation says nothing about whether is monotonically increasing. tick() isn’t, os.time() is, Workspace:GetServerTimeNow() is, so it’s unclear.

1 Like

We’ve filed a ticket to our internal database for this issue. We will come back as soon as we have updates!

Thanks for the report!