From e8e69b2d509385e7c2be9e985dcfe7c2ff8e33a0 Mon Sep 17 00:00:00 2001 From: kobewi Date: Wed, 24 Mar 2021 13:21:32 +0100 Subject: [PATCH] Clarify that get_unix_time() returns seconds (cherry picked from commit 6e4a8b7f37e0bd934202145a6b2c0f283a14a877) --- doc/classes/OS.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/OS.xml b/doc/classes/OS.xml index 372fbcac70..8fb1d0dd95 100644 --- a/doc/classes/OS.xml +++ b/doc/classes/OS.xml @@ -537,7 +537,7 @@ - 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).