Os.difftime

From GiderosMobile
Revision as of 14:30, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")

Available since: Gideros 2011.6
Class: os

Description

Returns the number of seconds from time t1 to time t2. <syntaxhighlight lang="lua"> (number) = os.difftime(t2,t1) </source>

Parameters

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

Return values

Returns (number) difference between time dates in seconds