Difference between revisions of "Os.difftime"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2011.6<br/> | |
− | ''' | + | '''Class:''' [[os]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Returns the number of seconds from time t1 to time t2. | |
<source lang="lua"> | <source lang="lua"> | ||
(number) = os.difftime(t2,t1) | (number) = os.difftime(t2,t1) | ||
</source> | </source> | ||
− | === | + | |
− | '''t2''': (number) | + | === Parameters === |
− | '''t1''': (number) | + | '''t2''': (number) first time<br/> |
− | === | + | '''t1''': (number) second time<br/> |
− | ''' | + | |
+ | === Return values === | ||
+ | '''Returns''' (number) difference between time dates in seconds<br/> | ||
{{Os}} | {{Os}} |
Revision as of 23:23, 28 October 2022
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