summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-03-24 13:49:33 +0100
committerGitHub <noreply@github.com>2021-03-24 13:49:33 +0100
commite9144d2519f8a5dc7f74fdcb0786d099beb2ac24 (patch)
treec1ee756279420a6f053bdcfd270395775c3d626d
parent92cdd646bde745774875ded593c41bb8a09eacaa (diff)
parent6e4a8b7f37e0bd934202145a6b2c0f283a14a877 (diff)
Merge pull request #47320 from KoBeWi/what_time_is_it
Clarify that get_unix_time() returns seconds
-rw-r--r--doc/classes/OS.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml
index a76ea5868c..8c90108aef 100644
--- a/doc/classes/OS.xml
+++ b/doc/classes/OS.xml
@@ -355,7 +355,7 @@
<return type="float">
</return>
<description>
- Returns the current UNIX epoch timestamp.
+ Returns the current UNIX epoch timestamp in seconds.
[b]Important:[/b] This is the system clock that the user can manully set. [b]Never use[/b] this method for precise time calculation since its results are also subject to automatic adjustments by the operating system. [b]Always use[/b] [method get_ticks_usec] or [method get_ticks_msec] for precise time calculation instead, since they are guaranteed to be monotonic (i.e. never decrease).
</description>
</method>