Browse Source

Merge pull request #47320 from KoBeWi/what_time_is_it

Clarify that get_unix_time() returns seconds
Rémi Verschelde 4 years ago
parent
commit
e9144d2519
1 changed files with 1 additions and 1 deletions
  1. 1 1
      doc/classes/OS.xml

+ 1 - 1
doc/classes/OS.xml

@@ -355,7 +355,7 @@
 			<return type="float">
 			<return type="float">
 			</return>
 			</return>
 			<description>
 			<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).
 				[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>
 			</description>
 		</method>
 		</method>