Difference between revisions of "Os.difftime"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[os]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/os|os]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>returns number of seconds from time t1 to time t2</translate>
+
Returns the number of seconds from time t1 to time t2.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = os.difftime(t2,t1)
 
(number) = os.difftime(t2,t1)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''t2''': (number) <translate>first time</translate> <br/>
+
=== Parameters ===
'''t1''': (number) <translate>second time</translate> <br/>
+
'''t2''': (number) first time<br/>
=== <translate>Return values</translate> ===
+
'''t1''': (number) second time<br/>
'''<translate>Returns</translate>''' (number) <translate>different between time dates in seconds</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (number) difference between time dates in seconds<br/>
  
 
{{Os}}
 
{{Os}}

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