Difference between revisions of "Os.difftime"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number) = os.difftime(t2,t1)
 
(number) = os.difftime(t2,t1)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:32, 13 July 2023

Available since: Gideros 2011.6
Class: os

Description

Returns the number of seconds from time t1 to time t2.

(number) = os.difftime(t2,t1)

Parameters

t2: (number) first time
t1: (number) second time

Return values

Returns (number) difference between time dates in seconds